cybersource_rest_client 0.0.79 → 0.0.80
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/core/MerchantConfig.rb +1 -0
- data/lib/AuthenticationSDK/util/Cache.rb +14 -0
- data/lib/AuthenticationSDK/util/Constants.rb +2 -0
- data/lib/AuthenticationSDK/util/JWT/JWTExceptions.rb +81 -0
- data/lib/AuthenticationSDK/util/JWT/JWTUtility.rb +154 -0
- data/lib/cybersource_rest_client/api/bank_account_validation_api.rb +8 -4
- data/lib/cybersource_rest_client/api/batches_api.rb +29 -13
- data/lib/cybersource_rest_client/api/billing_agreements_api.rb +15 -3
- data/lib/cybersource_rest_client/api/bin_lookup_api.rb +5 -1
- data/lib/cybersource_rest_client/api/capture_api.rb +5 -1
- data/lib/cybersource_rest_client/api/chargeback_details_api.rb +5 -1
- data/lib/cybersource_rest_client/api/chargeback_summaries_api.rb +5 -1
- data/lib/cybersource_rest_client/api/conversion_details_api.rb +5 -1
- data/lib/cybersource_rest_client/api/create_new_webhooks_api.rb +18 -6
- data/lib/cybersource_rest_client/api/credit_api.rb +5 -1
- data/lib/cybersource_rest_client/api/customer_api.rb +22 -6
- data/lib/cybersource_rest_client/api/customer_payment_instrument_api.rb +27 -7
- data/lib/cybersource_rest_client/api/customer_shipping_address_api.rb +27 -7
- data/lib/cybersource_rest_client/api/decision_manager_api.rb +28 -8
- data/lib/cybersource_rest_client/api/device_de_association_api.rb +13 -5
- data/lib/cybersource_rest_client/api/device_search_api.rb +16 -8
- data/lib/cybersource_rest_client/api/download_dtd_api.rb +5 -1
- data/lib/cybersource_rest_client/api/download_xsd_api.rb +5 -1
- data/lib/cybersource_rest_client/api/emv_tag_details_api.rb +10 -2
- data/lib/cybersource_rest_client/api/flex_api_api.rb +5 -1
- data/lib/cybersource_rest_client/api/instrument_identifier_api.rb +33 -9
- data/lib/cybersource_rest_client/api/interchange_clearing_level_details_api.rb +5 -1
- data/lib/cybersource_rest_client/api/invoice_settings_api.rb +10 -2
- data/lib/cybersource_rest_client/api/invoices_api.rb +35 -7
- data/lib/cybersource_rest_client/api/manage_webhooks_api.rb +41 -13
- data/lib/cybersource_rest_client/api/merchant_boarding_api.rb +13 -5
- data/lib/cybersource_rest_client/api/merchant_defined_fields_api.rb +29 -13
- data/lib/cybersource_rest_client/api/microform_integration_api.rb +5 -1
- data/lib/cybersource_rest_client/api/net_fundings_api.rb +5 -1
- data/lib/cybersource_rest_client/api/notification_of_changes_api.rb +5 -1
- data/lib/cybersource_rest_client/api/offers_api.rb +13 -5
- data/lib/cybersource_rest_client/api/orders_api.rb +10 -2
- data/lib/cybersource_rest_client/api/payer_authentication_api.rb +15 -3
- data/lib/cybersource_rest_client/api/payment_batch_summaries_api.rb +5 -1
- data/lib/cybersource_rest_client/api/payment_instrument_api.rb +22 -6
- data/lib/cybersource_rest_client/api/payment_links_api.rb +20 -4
- data/lib/cybersource_rest_client/api/payment_tokens_api.rb +5 -1
- data/lib/cybersource_rest_client/api/payments_api.rb +30 -6
- data/lib/cybersource_rest_client/api/payouts_api.rb +5 -1
- data/lib/cybersource_rest_client/api/plans_api.rb +40 -8
- data/lib/cybersource_rest_client/api/purchase_and_refund_details_api.rb +5 -1
- data/lib/cybersource_rest_client/api/push_funds_api.rb +5 -1
- data/lib/cybersource_rest_client/api/refund_api.rb +10 -2
- data/lib/cybersource_rest_client/api/report_definitions_api.rb +10 -2
- data/lib/cybersource_rest_client/api/report_downloads_api.rb +5 -1
- data/lib/cybersource_rest_client/api/report_subscriptions_api.rb +25 -5
- data/lib/cybersource_rest_client/api/reports_api.rb +15 -3
- data/lib/cybersource_rest_client/api/retrieval_details_api.rb +5 -1
- data/lib/cybersource_rest_client/api/retrieval_summaries_api.rb +5 -1
- data/lib/cybersource_rest_client/api/reversal_api.rb +10 -2
- data/lib/cybersource_rest_client/api/search_transactions_api.rb +10 -2
- data/lib/cybersource_rest_client/api/secure_file_share_api.rb +10 -2
- data/lib/cybersource_rest_client/api/subscriptions_api.rb +49 -17
- data/lib/cybersource_rest_client/api/subscriptions_follow_ons_api.rb +10 -2
- data/lib/cybersource_rest_client/api/taxes_api.rb +10 -2
- data/lib/cybersource_rest_client/api/token_api.rb +14 -6
- data/lib/cybersource_rest_client/api/tokenize_api.rb +103 -0
- data/lib/cybersource_rest_client/api/tokenized_card_api.rb +105 -4
- data/lib/cybersource_rest_client/api/transaction_batches_api.rb +20 -4
- data/lib/cybersource_rest_client/api/transaction_details_api.rb +5 -1
- data/lib/cybersource_rest_client/api/transient_token_data_api.rb +10 -2
- data/lib/cybersource_rest_client/api/unified_checkout_capture_context_api.rb +5 -1
- data/lib/cybersource_rest_client/api/user_management_api.rb +5 -1
- data/lib/cybersource_rest_client/api/user_management_search_api.rb +5 -1
- data/lib/cybersource_rest_client/api/verification_api.rb +10 -2
- data/lib/cybersource_rest_client/api/void_api.rb +25 -5
- data/lib/cybersource_rest_client/models/create_plan_request.rb +1 -11
- data/lib/cybersource_rest_client/models/create_subscription_request.rb +1 -1
- data/lib/cybersource_rest_client/models/create_subscription_request_1.rb +1 -1
- data/lib/cybersource_rest_client/models/create_subscription_response.rb +15 -5
- data/lib/cybersource_rest_client/models/generate_unified_checkout_capture_context_request.rb +13 -2
- data/lib/cybersource_rest_client/models/get_all_subscriptions_response_client_reference_information.rb +196 -0
- data/lib/cybersource_rest_client/models/get_all_subscriptions_response_subscriptions.rb +11 -1
- data/lib/cybersource_rest_client/models/get_subscription_response.rb +11 -1
- data/lib/cybersource_rest_client/models/get_subscription_response_1_payment_instrument.rb +1 -1
- data/lib/cybersource_rest_client/models/get_subscription_response_1_payment_instrument_buyer_information.rb +1 -1
- data/lib/cybersource_rest_client/models/get_subscription_response_1_shipping_address.rb +1 -1
- data/lib/cybersource_rest_client/models/get_subscription_response_reactivation_information.rb +22 -22
- data/lib/cybersource_rest_client/models/inline_response_200.rb +9 -44
- data/lib/cybersource_rest_client/models/inline_response_200_1.rb +29 -31
- data/lib/cybersource_rest_client/models/inline_response_200_10.rb +33 -37
- data/lib/cybersource_rest_client/models/{inline_response_200_9_devices.rb → inline_response_200_10_devices.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_200_9_payment_processor_to_terminal_map.rb → inline_response_200_10_payment_processor_to_terminal_map.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_200_11.rb +47 -86
- data/lib/cybersource_rest_client/models/{inline_response_200_10__embedded.rb → inline_response_200_11__embedded.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_200_10__embedded__links.rb → inline_response_200_11__embedded__links.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_200_10__embedded__links_reports.rb → inline_response_200_11__embedded__links_reports.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_200_10__embedded_batches.rb → inline_response_200_11__embedded_batches.rb} +3 -3
- data/lib/cybersource_rest_client/models/{inline_response_200_10__embedded_totals.rb → inline_response_200_11__embedded_totals.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_200_11__links.rb +16 -17
- data/lib/cybersource_rest_client/models/inline_response_200_12.rb +47 -49
- data/lib/cybersource_rest_client/models/inline_response_200_12__links.rb +201 -0
- data/lib/cybersource_rest_client/models/{inline_response_200_11__links_report.rb → inline_response_200_12__links_report.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_200_11_billing.rb → inline_response_200_12_billing.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_200_13.rb +102 -31
- data/lib/cybersource_rest_client/models/{inline_response_200_12_records.rb → inline_response_200_13_records.rb} +3 -3
- data/lib/cybersource_rest_client/models/{inline_response_200_12_response_record.rb → inline_response_200_13_response_record.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_200_12_response_record_additional_updates.rb → inline_response_200_13_response_record_additional_updates.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_200_12_source_record.rb → inline_response_200_13_source_record.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_200_14.rb +18 -84
- data/lib/cybersource_rest_client/models/inline_response_200_15.rb +287 -0
- data/lib/cybersource_rest_client/models/{inline_response_200_14_client_reference_information.rb → inline_response_200_15_client_reference_information.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_200_content.rb → inline_response_200_1_content.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_200_2.rb +32 -103
- data/lib/cybersource_rest_client/models/{inline_response_200_1__embedded.rb → inline_response_200_2__embedded.rb} +3 -3
- data/lib/cybersource_rest_client/models/{inline_response_200_1__embedded_capture.rb → inline_response_200_2__embedded_capture.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_200_1__embedded_capture__links.rb → inline_response_200_2__embedded_capture__links.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_200_1__embedded_capture__links_self.rb → inline_response_200_2__embedded_capture__links_self.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_200_1__embedded_reversal.rb → inline_response_200_2__embedded_reversal.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_200_1__embedded_reversal__links.rb → inline_response_200_2__embedded_reversal__links.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_200_1__embedded_reversal__links_self.rb → inline_response_200_2__embedded_reversal__links_self.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_200_3.rb +100 -54
- data/lib/cybersource_rest_client/models/inline_response_200_4.rb +65 -25
- data/lib/cybersource_rest_client/models/{inline_response_200_3_integration_information.rb → inline_response_200_4_integration_information.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_200_3_integration_information_tenant_configurations.rb → inline_response_200_4_integration_information_tenant_configurations.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_200_5.rb +25 -126
- data/lib/cybersource_rest_client/models/inline_response_200_6.rb +1 -12
- data/lib/cybersource_rest_client/models/inline_response_200_7.rb +129 -51
- data/lib/cybersource_rest_client/models/inline_response_200_8.rb +55 -10
- data/lib/cybersource_rest_client/models/{inline_response_200_7_devices.rb → inline_response_200_8_devices.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_200_9.rb +10 -55
- data/lib/cybersource_rest_client/models/{inline_response_200_10__links.rb → inline_response_200_details.rb} +18 -17
- data/lib/cybersource_rest_client/models/inline_response_200_errors.rb +213 -0
- data/lib/cybersource_rest_client/models/inline_response_200_responses.rb +224 -0
- data/lib/cybersource_rest_client/models/inline_response_201_3_setups_payments.rb +15 -5
- data/lib/cybersource_rest_client/models/patch_customer_payment_instrument_request.rb +9 -9
- data/lib/cybersource_rest_client/models/patch_customer_request.rb +9 -9
- data/lib/cybersource_rest_client/models/patch_customer_shipping_address_request.rb +3 -3
- data/lib/cybersource_rest_client/models/patch_payment_instrument_request.rb +9 -9
- data/lib/cybersource_rest_client/models/payment_instrument_list_1__embedded_payment_instruments.rb +8 -8
- data/lib/cybersource_rest_client/models/payment_instrument_list__embedded.rb +1 -1
- data/lib/cybersource_rest_client/models/payments_products.rb +15 -5
- data/lib/cybersource_rest_client/models/post_customer_payment_instrument_request.rb +9 -9
- data/lib/cybersource_rest_client/models/post_customer_request.rb +9 -9
- data/lib/cybersource_rest_client/models/post_customer_shipping_address_request.rb +3 -3
- data/lib/cybersource_rest_client/models/post_issuer_life_cycle_simulation_request.rb +211 -0
- data/lib/cybersource_rest_client/models/post_payment_instrument_request.rb +9 -9
- data/lib/cybersource_rest_client/models/post_tokenize_request.rb +199 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_aggregator_information.rb +22 -5
- data/lib/cybersource_rest_client/models/shipping_address_list_for_customer__embedded.rb +1 -1
- data/lib/cybersource_rest_client/models/tms_issuerlifecycleeventsimulations_metadata_card_art_combined_asset.rb +190 -0
- data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_payment_instrument_merchant_information.rb → tms_merchant_information.rb} +2 -2
- data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_payment_instrument_merchant_information_merchant_descriptor.rb → tms_merchant_information_merchant_descriptor.rb} +1 -1
- data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_payment_instrument_buyer_information_issued_by.rb → tmsv2tokenize_default_payment_instrument_buyer_info_issued_by.rb} +1 -1
- data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_payment_instrument_buyer_information_personal_identification.rb → tmsv2tokenize_default_payment_instrument_buyer_info_personal_identification.rb} +2 -2
- data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_payment_instrument_card_tokenized_information.rb → tmsv2tokenize_default_payment_instrument_card_tokenized_info.rb} +1 -1
- data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_payment_instrument_instrument_identifier.rb → tmsv2tokenize_default_payment_instrument_instrument_identifier.rb} +1 -1
- data/lib/cybersource_rest_client/models/tmsv2tokenize_processing_information.rb +205 -0
- data/lib/cybersource_rest_client/models/tmsv2tokenize_token_information.rb +247 -0
- data/lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer.rb +289 -0
- data/lib/cybersource_rest_client/models/{tmsv2customers__embedded.rb → tmsv2tokenize_token_information_customer__embedded.rb} +3 -3
- data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_payment_instrument.rb → tmsv2tokenize_token_information_customer__embedded_default_payment_instrument.rb} +10 -10
- data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_payment_instrument__embedded.rb → tmsv2tokenize_token_information_customer__embedded_default_payment_instrument__embedded.rb} +1 -1
- data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_payment_instrument__links.rb → tmsv2tokenize_token_information_customer__embedded_default_payment_instrument__links.rb} +3 -3
- data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_payment_instrument__links_self.rb → tmsv2tokenize_token_information_customer__embedded_default_payment_instrument__links_self.rb} +1 -1
- data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_payment_instrument_bank_account.rb → tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_bank_account.rb} +1 -1
- data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_payment_instrument_bill_to.rb → tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_bill_to.rb} +1 -1
- data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_payment_instrument_buyer_information.rb → tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_buyer_information.rb} +2 -2
- data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_payment_instrument_card.rb → tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_card.rb} +2 -2
- data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_payment_instrument_metadata.rb → tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_metadata.rb} +1 -1
- data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_shipping_address.rb → tmsv2tokenize_token_information_customer__embedded_default_shipping_address.rb} +4 -4
- data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_shipping_address__links.rb → tmsv2tokenize_token_information_customer__embedded_default_shipping_address__links.rb} +3 -3
- data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_shipping_address__links_customer.rb → tmsv2tokenize_token_information_customer__embedded_default_shipping_address__links_customer.rb} +1 -1
- data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_shipping_address__links_self.rb → tmsv2tokenize_token_information_customer__embedded_default_shipping_address__links_self.rb} +1 -1
- data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_shipping_address_metadata.rb → tmsv2tokenize_token_information_customer__embedded_default_shipping_address_metadata.rb} +1 -1
- data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_shipping_address_ship_to.rb → tmsv2tokenize_token_information_customer__embedded_default_shipping_address_ship_to.rb} +1 -1
- data/lib/cybersource_rest_client/models/{tmsv2customers__links.rb → tmsv2tokenize_token_information_customer__links.rb} +4 -4
- data/lib/cybersource_rest_client/models/{tmsv2customers__links_payment_instruments.rb → tmsv2tokenize_token_information_customer__links_payment_instruments.rb} +1 -1
- data/lib/cybersource_rest_client/models/{tmsv2customers__links_self.rb → tmsv2tokenize_token_information_customer__links_self.rb} +1 -1
- data/lib/cybersource_rest_client/models/{tmsv2customers__links_shipping_address.rb → tmsv2tokenize_token_information_customer__links_shipping_address.rb} +1 -1
- data/lib/cybersource_rest_client/models/{tmsv2customers_buyer_information.rb → tmsv2tokenize_token_information_customer_buyer_information.rb} +1 -1
- data/lib/cybersource_rest_client/models/{tmsv2customers_client_reference_information.rb → tmsv2tokenize_token_information_customer_client_reference_information.rb} +1 -1
- data/lib/cybersource_rest_client/models/{tmsv2customers_default_payment_instrument.rb → tmsv2tokenize_token_information_customer_default_payment_instrument.rb} +1 -1
- data/lib/cybersource_rest_client/models/{tmsv2customers_default_shipping_address.rb → tmsv2tokenize_token_information_customer_default_shipping_address.rb} +1 -1
- data/lib/cybersource_rest_client/models/{tmsv2customers_merchant_defined_information.rb → tmsv2tokenize_token_information_customer_merchant_defined_information.rb} +1 -1
- data/lib/cybersource_rest_client/models/{tmsv2customers_metadata.rb → tmsv2tokenize_token_information_customer_metadata.rb} +1 -1
- data/lib/cybersource_rest_client/models/{tmsv2customers_object_information.rb → tmsv2tokenize_token_information_customer_object_information.rb} +1 -1
- data/lib/cybersource_rest_client/models/{rbsv1subscriptions_client_reference_information_partner.rb → tmsv2tokenizedcardstokenized_card_idissuerlifecycleeventsimulations_card.rb} +41 -24
- data/lib/cybersource_rest_client/models/tmsv2tokenizedcardstokenized_card_idissuerlifecycleeventsimulations_metadata.rb +189 -0
- data/lib/cybersource_rest_client/models/tmsv2tokenizedcardstokenized_card_idissuerlifecycleeventsimulations_metadata_card_art.rb +189 -0
- data/lib/cybersource_rest_client/models/update_subscription.rb +1 -1
- data/lib/cybersource_rest_client/models/upv1capturecontexts_data.rb +25 -5
- data/lib/cybersource_rest_client/models/upv1capturecontexts_data_buyer_information.rb +41 -5
- data/lib/cybersource_rest_client/models/upv1capturecontexts_data_buyer_information_personal_identification.rb +1 -0
- data/lib/cybersource_rest_client/models/upv1capturecontexts_data_client_reference_information_partner.rb +3 -3
- data/lib/cybersource_rest_client/models/upv1capturecontexts_data_consumer_authentication_information.rb +24 -5
- data/lib/cybersource_rest_client/models/upv1capturecontexts_data_device_information.rb +196 -0
- data/lib/cybersource_rest_client/models/upv1capturecontexts_data_merchant_information_merchant_descriptor.rb +124 -5
- data/lib/cybersource_rest_client/models/upv1capturecontexts_data_order_information.rb +15 -5
- data/lib/cybersource_rest_client/models/upv1capturecontexts_data_order_information_amount_details.rb +15 -5
- data/lib/cybersource_rest_client/models/upv1capturecontexts_data_order_information_amount_details_tax_details.rb +213 -0
- data/lib/cybersource_rest_client/models/upv1capturecontexts_data_order_information_invoice_details.rb +213 -0
- data/lib/cybersource_rest_client/models/upv1capturecontexts_data_order_information_line_items.rb +30 -0
- data/lib/cybersource_rest_client/models/upv1capturecontexts_data_order_information_line_items_passenger.rb +8 -0
- data/lib/cybersource_rest_client/models/upv1capturecontexts_data_order_information_line_items_tax_details.rb +7 -0
- data/lib/cybersource_rest_client/models/upv1capturecontexts_data_payment_information.rb +189 -0
- data/lib/cybersource_rest_client/models/upv1capturecontexts_data_payment_information_card.rb +196 -0
- data/lib/cybersource_rest_client/models/upv1capturecontexts_data_processing_information.rb +1 -0
- data/lib/cybersource_rest_client/models/upv1capturecontexts_data_processing_information_authorization_options.rb +74 -5
- data/lib/cybersource_rest_client/models/upv1capturecontexts_data_processing_information_authorization_options_initiator.rb +1 -0
- data/lib/cybersource_rest_client/models/upv1capturecontexts_data_recipient_information.rb +39 -5
- data/lib/cybersource_rest_client/models/upv1capturecontexts_order_information.rb +1 -0
- data/lib/cybersource_rest_client/utilities/capture_context/capture_context_parsing_utility.rb +113 -0
- data/lib/cybersource_rest_client/utilities/capture_context/public_key_fetcher.rb +131 -0
- data/lib/cybersource_rest_client.rb +80 -62
- metadata +85 -64
- data/lib/cybersource_rest_client/models/rbsv1plans_client_reference_information.rb +0 -239
- data/lib/cybersource_rest_client/models/rbsv1subscriptions_client_reference_information.rb +0 -256
|
@@ -72,7 +72,11 @@ module CyberSource
|
|
|
72
72
|
post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'ValidateExportComplianceRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
|
|
73
73
|
inbound_mle_status = "false"
|
|
74
74
|
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["validate_export_compliance","validate_export_compliance_with_http_info"])
|
|
75
|
-
|
|
75
|
+
begin
|
|
76
|
+
post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
|
|
77
|
+
rescue
|
|
78
|
+
raise
|
|
79
|
+
end
|
|
76
80
|
end
|
|
77
81
|
auth_names = []
|
|
78
82
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
@@ -145,7 +149,11 @@ module CyberSource
|
|
|
145
149
|
post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'VerifyCustomerAddressRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
|
|
146
150
|
inbound_mle_status = "false"
|
|
147
151
|
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["verify_customer_address","verify_customer_address_with_http_info"])
|
|
148
|
-
|
|
152
|
+
begin
|
|
153
|
+
post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
|
|
154
|
+
rescue
|
|
155
|
+
raise
|
|
156
|
+
end
|
|
149
157
|
end
|
|
150
158
|
auth_names = []
|
|
151
159
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
@@ -72,7 +72,11 @@ module CyberSource
|
|
|
72
72
|
post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'MitVoidRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
|
|
73
73
|
inbound_mle_status = "optional"
|
|
74
74
|
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["mit_void","mit_void_with_http_info"])
|
|
75
|
-
|
|
75
|
+
begin
|
|
76
|
+
post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
|
|
77
|
+
rescue
|
|
78
|
+
raise
|
|
79
|
+
end
|
|
76
80
|
end
|
|
77
81
|
auth_names = []
|
|
78
82
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
@@ -151,7 +155,11 @@ module CyberSource
|
|
|
151
155
|
post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'VoidCaptureRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
|
|
152
156
|
inbound_mle_status = "optional"
|
|
153
157
|
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["void_capture","void_capture_with_http_info"])
|
|
154
|
-
|
|
158
|
+
begin
|
|
159
|
+
post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
|
|
160
|
+
rescue
|
|
161
|
+
raise
|
|
162
|
+
end
|
|
155
163
|
end
|
|
156
164
|
auth_names = []
|
|
157
165
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
@@ -230,7 +238,11 @@ module CyberSource
|
|
|
230
238
|
post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'VoidCreditRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
|
|
231
239
|
inbound_mle_status = "optional"
|
|
232
240
|
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["void_credit","void_credit_with_http_info"])
|
|
233
|
-
|
|
241
|
+
begin
|
|
242
|
+
post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
|
|
243
|
+
rescue
|
|
244
|
+
raise
|
|
245
|
+
end
|
|
234
246
|
end
|
|
235
247
|
auth_names = []
|
|
236
248
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
@@ -309,7 +321,11 @@ module CyberSource
|
|
|
309
321
|
post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'VoidPaymentRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
|
|
310
322
|
inbound_mle_status = "optional"
|
|
311
323
|
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["void_payment","void_payment_with_http_info"])
|
|
312
|
-
|
|
324
|
+
begin
|
|
325
|
+
post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
|
|
326
|
+
rescue
|
|
327
|
+
raise
|
|
328
|
+
end
|
|
313
329
|
end
|
|
314
330
|
auth_names = []
|
|
315
331
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
@@ -388,7 +404,11 @@ module CyberSource
|
|
|
388
404
|
post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'VoidRefundRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
|
|
389
405
|
inbound_mle_status = "optional"
|
|
390
406
|
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["void_refund","void_refund_with_http_info"])
|
|
391
|
-
|
|
407
|
+
begin
|
|
408
|
+
post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
|
|
409
|
+
rescue
|
|
410
|
+
raise
|
|
411
|
+
end
|
|
392
412
|
end
|
|
393
413
|
auth_names = []
|
|
394
414
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
@@ -13,8 +13,6 @@ require 'date'
|
|
|
13
13
|
|
|
14
14
|
module CyberSource
|
|
15
15
|
class CreatePlanRequest
|
|
16
|
-
attr_accessor :client_reference_information
|
|
17
|
-
|
|
18
16
|
attr_accessor :plan_information
|
|
19
17
|
|
|
20
18
|
attr_accessor :order_information
|
|
@@ -22,7 +20,6 @@ module CyberSource
|
|
|
22
20
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
23
21
|
def self.attribute_map
|
|
24
22
|
{
|
|
25
|
-
:'client_reference_information' => :'clientReferenceInformation',
|
|
26
23
|
:'plan_information' => :'planInformation',
|
|
27
24
|
:'order_information' => :'orderInformation'
|
|
28
25
|
}
|
|
@@ -31,7 +28,6 @@ module CyberSource
|
|
|
31
28
|
# Attribute mapping from JSON key to ruby-style variable name.
|
|
32
29
|
def self.json_map
|
|
33
30
|
{
|
|
34
|
-
:'client_reference_information' => :'client_reference_information',
|
|
35
31
|
:'plan_information' => :'plan_information',
|
|
36
32
|
:'order_information' => :'order_information'
|
|
37
33
|
}
|
|
@@ -40,7 +36,6 @@ module CyberSource
|
|
|
40
36
|
# Attribute type mapping.
|
|
41
37
|
def self.swagger_types
|
|
42
38
|
{
|
|
43
|
-
:'client_reference_information' => :'Rbsv1plansClientReferenceInformation',
|
|
44
39
|
:'plan_information' => :'Rbsv1plansPlanInformation',
|
|
45
40
|
:'order_information' => :'Rbsv1plansOrderInformation'
|
|
46
41
|
}
|
|
@@ -54,10 +49,6 @@ module CyberSource
|
|
|
54
49
|
# convert string to symbol for hash key
|
|
55
50
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
56
51
|
|
|
57
|
-
if attributes.has_key?(:'clientReferenceInformation')
|
|
58
|
-
self.client_reference_information = attributes[:'clientReferenceInformation']
|
|
59
|
-
end
|
|
60
|
-
|
|
61
52
|
if attributes.has_key?(:'planInformation')
|
|
62
53
|
self.plan_information = attributes[:'planInformation']
|
|
63
54
|
end
|
|
@@ -85,7 +76,6 @@ module CyberSource
|
|
|
85
76
|
def ==(o)
|
|
86
77
|
return true if self.equal?(o)
|
|
87
78
|
self.class == o.class &&
|
|
88
|
-
client_reference_information == o.client_reference_information &&
|
|
89
79
|
plan_information == o.plan_information &&
|
|
90
80
|
order_information == o.order_information
|
|
91
81
|
end
|
|
@@ -99,7 +89,7 @@ module CyberSource
|
|
|
99
89
|
# Calculates hash code according to all attributes.
|
|
100
90
|
# @return [Fixnum] Hash code
|
|
101
91
|
def hash
|
|
102
|
-
[
|
|
92
|
+
[plan_information, order_information].hash
|
|
103
93
|
end
|
|
104
94
|
|
|
105
95
|
# Builds the object from hash
|
|
@@ -52,7 +52,7 @@ module CyberSource
|
|
|
52
52
|
# Attribute type mapping.
|
|
53
53
|
def self.swagger_types
|
|
54
54
|
{
|
|
55
|
-
:'client_reference_information' => :'
|
|
55
|
+
:'client_reference_information' => :'GetAllSubscriptionsResponseClientReferenceInformation',
|
|
56
56
|
:'processing_information' => :'Rbsv1subscriptionsProcessingInformation',
|
|
57
57
|
:'plan_information' => :'Rbsv1subscriptionsPlanInformation',
|
|
58
58
|
:'subscription_information' => :'Rbsv1subscriptionsSubscriptionInformation',
|
|
@@ -48,7 +48,7 @@ module CyberSource
|
|
|
48
48
|
# Attribute type mapping.
|
|
49
49
|
def self.swagger_types
|
|
50
50
|
{
|
|
51
|
-
:'client_reference_information' => :'
|
|
51
|
+
:'client_reference_information' => :'GetAllSubscriptionsResponseClientReferenceInformation',
|
|
52
52
|
:'processing_information' => :'Rbsv1subscriptionsProcessingInformation',
|
|
53
53
|
:'plan_information' => :'Rbsv1subscriptionsPlanInformation',
|
|
54
54
|
:'subscription_information' => :'Rbsv1subscriptionsSubscriptionInformation',
|
|
@@ -26,6 +26,8 @@ module CyberSource
|
|
|
26
26
|
|
|
27
27
|
attr_accessor :subscription_information
|
|
28
28
|
|
|
29
|
+
attr_accessor :client_reference_information
|
|
30
|
+
|
|
29
31
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
30
32
|
def self.attribute_map
|
|
31
33
|
{
|
|
@@ -33,7 +35,8 @@ module CyberSource
|
|
|
33
35
|
:'id' => :'id',
|
|
34
36
|
:'submit_time_utc' => :'submitTimeUtc',
|
|
35
37
|
:'status' => :'status',
|
|
36
|
-
:'subscription_information' => :'subscriptionInformation'
|
|
38
|
+
:'subscription_information' => :'subscriptionInformation',
|
|
39
|
+
:'client_reference_information' => :'clientReferenceInformation'
|
|
37
40
|
}
|
|
38
41
|
end
|
|
39
42
|
|
|
@@ -44,7 +47,8 @@ module CyberSource
|
|
|
44
47
|
:'id' => :'id',
|
|
45
48
|
:'submit_time_utc' => :'submit_time_utc',
|
|
46
49
|
:'status' => :'status',
|
|
47
|
-
:'subscription_information' => :'subscription_information'
|
|
50
|
+
:'subscription_information' => :'subscription_information',
|
|
51
|
+
:'client_reference_information' => :'client_reference_information'
|
|
48
52
|
}
|
|
49
53
|
end
|
|
50
54
|
|
|
@@ -55,7 +59,8 @@ module CyberSource
|
|
|
55
59
|
:'id' => :'String',
|
|
56
60
|
:'submit_time_utc' => :'String',
|
|
57
61
|
:'status' => :'String',
|
|
58
|
-
:'subscription_information' => :'CreateSubscriptionResponseSubscriptionInformation'
|
|
62
|
+
:'subscription_information' => :'CreateSubscriptionResponseSubscriptionInformation',
|
|
63
|
+
:'client_reference_information' => :'GetAllSubscriptionsResponseClientReferenceInformation'
|
|
59
64
|
}
|
|
60
65
|
end
|
|
61
66
|
|
|
@@ -86,6 +91,10 @@ module CyberSource
|
|
|
86
91
|
if attributes.has_key?(:'subscriptionInformation')
|
|
87
92
|
self.subscription_information = attributes[:'subscriptionInformation']
|
|
88
93
|
end
|
|
94
|
+
|
|
95
|
+
if attributes.has_key?(:'clientReferenceInformation')
|
|
96
|
+
self.client_reference_information = attributes[:'clientReferenceInformation']
|
|
97
|
+
end
|
|
89
98
|
end
|
|
90
99
|
|
|
91
100
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -116,7 +125,8 @@ module CyberSource
|
|
|
116
125
|
id == o.id &&
|
|
117
126
|
submit_time_utc == o.submit_time_utc &&
|
|
118
127
|
status == o.status &&
|
|
119
|
-
subscription_information == o.subscription_information
|
|
128
|
+
subscription_information == o.subscription_information &&
|
|
129
|
+
client_reference_information == o.client_reference_information
|
|
120
130
|
end
|
|
121
131
|
|
|
122
132
|
# @see the `==` method
|
|
@@ -128,7 +138,7 @@ module CyberSource
|
|
|
128
138
|
# Calculates hash code according to all attributes.
|
|
129
139
|
# @return [Fixnum] Hash code
|
|
130
140
|
def hash
|
|
131
|
-
[_links, id, submit_time_utc, status, subscription_information].hash
|
|
141
|
+
[_links, id, submit_time_utc, status, subscription_information, client_reference_information].hash
|
|
132
142
|
end
|
|
133
143
|
|
|
134
144
|
# Builds the object from hash
|
data/lib/cybersource_rest_client/models/generate_unified_checkout_capture_context_request.rb
CHANGED
|
@@ -22,7 +22,7 @@ module CyberSource
|
|
|
22
22
|
# The list of card networks you want to use for this Unified Checkout transaction. Unified Checkout currently supports the following card networks: - VISA - MASTERCARD - AMEX - CARNET - CARTESBANCAIRES - CUP - DINERSCLUB - DISCOVER - EFTPOS - ELO - JAYWAN - JCB - JCREW - KCP - MADA - MAESTRO - MEEZA - PAYPAK - UATP
|
|
23
23
|
attr_accessor :allowed_card_networks
|
|
24
24
|
|
|
25
|
-
# The payment types that are allowed for the merchant. Possible values when launching Unified Checkout: - APPLEPAY - CHECK - CLICKTOPAY - GOOGLEPAY - PANENTRY - PAZE <br><br> Unified Checkout supports the following Buy Now, Pay Later (BNPL) payment methods: - AFTERPAY<br><br> Unified Checkout supports the following Online Bank Transfer payment methods: - Bancontact (BE) - DragonPay (PH) - iDEAL (NL) - Multibanco (PT) - MyBank (IT, BE, PT, ES) - Przelewy24|P24 (PL) - Tink Pay By Bank (GB) Possible values when launching Click To Pay Drop-In UI: - CLICKTOPAY <br><br> **Important:** - CLICKTOPAY only available for Visa, Mastercard and AMEX for saved cards. - Visa and Mastercard will look to tokenize using network tokenization for all Click to Pay requests. Click to Pay uses Click to Pay token requester IDs and not the merchant's existing token requester. - Apple Pay, Google Pay, Check, and Paze can be used independently without requiring PAN entry in the allowedPaymentTypes field.<br><br> **Managing Google Pay Authentication Types** When you enable Google Pay on Unified Checkout you can specify optional parameters that define the types of card authentication you receive from Google Pay.<br><br> **Managing Google Pay Authentication Types** Where Click to Pay is the payment type selected by the customer and the customer manually enters their card, the option to enroll their card in Click to Pay will be auto-checked if this field is set to \"true\". This is only available where the merchant and cardholder are based in the following countries and the billing type is set to \"FULL\" or \"PARTIAL\". - UAE - Argentina - Brazil - Chile - Colombia - Kuwait - Mexico - Peru - Qatar - Saudi Arabia - Ukraine - South Africa<br><br> If false, this is not present or not supported in the market. Enrollment in Click to Pay is not checked for the customer when completing manual card entry.
|
|
25
|
+
# The payment types that are allowed for the merchant. Possible values when launching Unified Checkout: - APPLEPAY - CHECK - CLICKTOPAY - GOOGLEPAY - PANENTRY - PAZE <br><br> Unified Checkout supports the following Buy Now, Pay Later (BNPL) payment methods: - AFTERPAY<br><br> Unified Checkout supports the following Online Bank Transfer payment methods: - Bancontact (BE) - DragonPay (PH) - iDEAL (NL) - Multibanco (PT) - MyBank (IT, BE, PT, ES) - Przelewy24|P24 (PL) - Tink Pay By Bank (GB)<br><br> Unified Checkout supports the following Post-Pay Reference payment methods: - Konbini (JP)<br><br> Possible values when launching Click To Pay Drop-In UI: - CLICKTOPAY <br><br> **Important:** - CLICKTOPAY only available for Visa, Mastercard and AMEX for saved cards. - Visa and Mastercard will look to tokenize using network tokenization for all Click to Pay requests. Click to Pay uses Click to Pay token requester IDs and not the merchant's existing token requester. - Apple Pay, Google Pay, Check, and Paze can be used independently without requiring PAN entry in the allowedPaymentTypes field.<br><br> **Managing Google Pay Authentication Types** When you enable Google Pay on Unified Checkout you can specify optional parameters that define the types of card authentication you receive from Google Pay.<br><br> **Managing Google Pay Authentication Types** Where Click to Pay is the payment type selected by the customer and the customer manually enters their card, the option to enroll their card in Click to Pay will be auto-checked if this field is set to \"true\". This is only available where the merchant and cardholder are based in the following countries and the billing type is set to \"FULL\" or \"PARTIAL\". - UAE - Argentina - Brazil - Chile - Colombia - Kuwait - Mexico - Peru - Qatar - Saudi Arabia - Ukraine - South Africa<br><br> If false, this is not present or not supported in the market. Enrollment in Click to Pay is not checked for the customer when completing manual card entry.
|
|
26
26
|
attr_accessor :allowed_payment_types
|
|
27
27
|
|
|
28
28
|
# Country the purchase is originating from (e.g. country of the merchant). Use the two-character ISO Standard
|
|
@@ -31,6 +31,9 @@ module CyberSource
|
|
|
31
31
|
# Localization of the User experience conforming to the ISO 639-1 language standards and two-character ISO Standard Country Code. Please refer to list of [supported locales through Unified Checkout](https://developer.cybersource.com/docs/cybs/en-us/unified-checkout/developer/all/rest/unified-checkout/uc-appendix-languages.html)
|
|
32
32
|
attr_accessor :locale
|
|
33
33
|
|
|
34
|
+
# Changes the label on the payment button within Unified Checkout .<br><br> Possible values: - ADD_CARD - CARD_PAYMENT - CHECKOUT - CHECKOUT_AND_CONTINUE - DEBIT_CREDIT - DONATE - PAY - PAY_WITH_CARD - SAVE_CARD - SUBSCRIBE_WITH_CARD<br><br> This is an optional field,
|
|
35
|
+
attr_accessor :button_type
|
|
36
|
+
|
|
34
37
|
attr_accessor :capture_mandate
|
|
35
38
|
|
|
36
39
|
attr_accessor :complete_mandate
|
|
@@ -50,6 +53,7 @@ module CyberSource
|
|
|
50
53
|
:'allowed_payment_types' => :'allowedPaymentTypes',
|
|
51
54
|
:'country' => :'country',
|
|
52
55
|
:'locale' => :'locale',
|
|
56
|
+
:'button_type' => :'buttonType',
|
|
53
57
|
:'capture_mandate' => :'captureMandate',
|
|
54
58
|
:'complete_mandate' => :'completeMandate',
|
|
55
59
|
:'transient_token_response_options' => :'transientTokenResponseOptions',
|
|
@@ -67,6 +71,7 @@ module CyberSource
|
|
|
67
71
|
:'allowed_payment_types' => :'allowed_payment_types',
|
|
68
72
|
:'country' => :'country',
|
|
69
73
|
:'locale' => :'locale',
|
|
74
|
+
:'button_type' => :'button_type',
|
|
70
75
|
:'capture_mandate' => :'capture_mandate',
|
|
71
76
|
:'complete_mandate' => :'complete_mandate',
|
|
72
77
|
:'transient_token_response_options' => :'transient_token_response_options',
|
|
@@ -84,6 +89,7 @@ module CyberSource
|
|
|
84
89
|
:'allowed_payment_types' => :'Array<String>',
|
|
85
90
|
:'country' => :'String',
|
|
86
91
|
:'locale' => :'String',
|
|
92
|
+
:'button_type' => :'String',
|
|
87
93
|
:'capture_mandate' => :'Upv1capturecontextsCaptureMandate',
|
|
88
94
|
:'complete_mandate' => :'Upv1capturecontextsCompleteMandate',
|
|
89
95
|
:'transient_token_response_options' => :'Microformv2sessionsTransientTokenResponseOptions',
|
|
@@ -130,6 +136,10 @@ module CyberSource
|
|
|
130
136
|
self.locale = attributes[:'locale']
|
|
131
137
|
end
|
|
132
138
|
|
|
139
|
+
if attributes.has_key?(:'buttonType')
|
|
140
|
+
self.button_type = attributes[:'buttonType']
|
|
141
|
+
end
|
|
142
|
+
|
|
133
143
|
if attributes.has_key?(:'captureMandate')
|
|
134
144
|
self.capture_mandate = attributes[:'captureMandate']
|
|
135
145
|
end
|
|
@@ -187,6 +197,7 @@ module CyberSource
|
|
|
187
197
|
allowed_payment_types == o.allowed_payment_types &&
|
|
188
198
|
country == o.country &&
|
|
189
199
|
locale == o.locale &&
|
|
200
|
+
button_type == o.button_type &&
|
|
190
201
|
capture_mandate == o.capture_mandate &&
|
|
191
202
|
complete_mandate == o.complete_mandate &&
|
|
192
203
|
transient_token_response_options == o.transient_token_response_options &&
|
|
@@ -203,7 +214,7 @@ module CyberSource
|
|
|
203
214
|
# Calculates hash code according to all attributes.
|
|
204
215
|
# @return [Fixnum] Hash code
|
|
205
216
|
def hash
|
|
206
|
-
[client_version, target_origins, allowed_card_networks, allowed_payment_types, country, locale, capture_mandate, complete_mandate, transient_token_response_options, data, order_information].hash
|
|
217
|
+
[client_version, target_origins, allowed_card_networks, allowed_payment_types, country, locale, button_type, capture_mandate, complete_mandate, transient_token_response_options, data, order_information].hash
|
|
207
218
|
end
|
|
208
219
|
|
|
209
220
|
# Builds the object from hash
|
|
@@ -0,0 +1,196 @@
|
|
|
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 GetAllSubscriptionsResponseClientReferenceInformation
|
|
16
|
+
# Merchant-generated order reference or tracking number. It is recommended that you send a unique value for each transaction so that you can perform meaningful searches for the transaction. #### Used by **Authorization** Required field. #### PIN Debit Requests for PIN debit reversals need to use the same merchant reference number that was used in the transaction that is being reversed. Required field for all PIN Debit requests (purchase, credit, and reversal). #### FDC Nashville Global Certain circumstances can cause the processor to truncate this value to 15 or 17 characters for Level II and Level III processing, which can cause a discrepancy between the value you submit and the value included in some processor reports.
|
|
17
|
+
attr_accessor :code
|
|
18
|
+
|
|
19
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
20
|
+
def self.attribute_map
|
|
21
|
+
{
|
|
22
|
+
:'code' => :'code'
|
|
23
|
+
}
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
# Attribute mapping from JSON key to ruby-style variable name.
|
|
27
|
+
def self.json_map
|
|
28
|
+
{
|
|
29
|
+
:'code' => :'code'
|
|
30
|
+
}
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# Attribute type mapping.
|
|
34
|
+
def self.swagger_types
|
|
35
|
+
{
|
|
36
|
+
:'code' => :'String'
|
|
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?(:'code')
|
|
49
|
+
self.code = attributes[:'code']
|
|
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
|
+
# Custom attribute writer method with validation
|
|
67
|
+
# @param [Object] code Value to be assigned
|
|
68
|
+
def code=(code)
|
|
69
|
+
@code = code
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
# Checks equality by comparing each attribute.
|
|
73
|
+
# @param [Object] Object to be compared
|
|
74
|
+
def ==(o)
|
|
75
|
+
return true if self.equal?(o)
|
|
76
|
+
self.class == o.class &&
|
|
77
|
+
code == o.code
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
# @see the `==` method
|
|
81
|
+
# @param [Object] Object to be compared
|
|
82
|
+
def eql?(o)
|
|
83
|
+
self == o
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# Calculates hash code according to all attributes.
|
|
87
|
+
# @return [Fixnum] Hash code
|
|
88
|
+
def hash
|
|
89
|
+
[code].hash
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
# Builds the object from hash
|
|
93
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
94
|
+
# @return [Object] Returns the model itself
|
|
95
|
+
def build_from_hash(attributes)
|
|
96
|
+
return nil unless attributes.is_a?(Hash)
|
|
97
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
98
|
+
if type =~ /\AArray<(.*)>/i
|
|
99
|
+
# check to ensure the input is an array given that the the attribute
|
|
100
|
+
# is documented as an array but the input is not
|
|
101
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
102
|
+
self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
103
|
+
end
|
|
104
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
105
|
+
self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
106
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
self
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
# Deserializes the data based on type
|
|
113
|
+
# @param string type Data type
|
|
114
|
+
# @param string value Value to be deserialized
|
|
115
|
+
# @return [Object] Deserialized data
|
|
116
|
+
def _deserialize(type, value)
|
|
117
|
+
case type.to_sym
|
|
118
|
+
when :DateTime
|
|
119
|
+
DateTime.parse(value)
|
|
120
|
+
when :Date
|
|
121
|
+
Date.parse(value)
|
|
122
|
+
when :String
|
|
123
|
+
value.to_s
|
|
124
|
+
when :Integer
|
|
125
|
+
value.to_i
|
|
126
|
+
when :Float
|
|
127
|
+
value.to_f
|
|
128
|
+
when :BOOLEAN
|
|
129
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
130
|
+
true
|
|
131
|
+
else
|
|
132
|
+
false
|
|
133
|
+
end
|
|
134
|
+
when :Object
|
|
135
|
+
# generic object (usually a Hash), return directly
|
|
136
|
+
value
|
|
137
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
138
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
139
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
140
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
141
|
+
k_type = Regexp.last_match[:k_type]
|
|
142
|
+
v_type = Regexp.last_match[:v_type]
|
|
143
|
+
{}.tap do |hash|
|
|
144
|
+
value.each do |k, v|
|
|
145
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
146
|
+
end
|
|
147
|
+
end
|
|
148
|
+
else # model
|
|
149
|
+
temp_model = CyberSource.const_get(type).new
|
|
150
|
+
temp_model.build_from_hash(value)
|
|
151
|
+
end
|
|
152
|
+
end
|
|
153
|
+
|
|
154
|
+
# Returns the string representation of the object
|
|
155
|
+
# @return [String] String presentation of the object
|
|
156
|
+
def to_s
|
|
157
|
+
to_hash.to_s
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
161
|
+
# @return [Hash] Returns the object in the form of hash
|
|
162
|
+
def to_body
|
|
163
|
+
to_hash
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
# Returns the object in the form of hash
|
|
167
|
+
# @return [Hash] Returns the object in the form of hash
|
|
168
|
+
def to_hash
|
|
169
|
+
hash = {}
|
|
170
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
171
|
+
value = self.send(attr)
|
|
172
|
+
next if value.nil?
|
|
173
|
+
hash[param] = _to_hash(value)
|
|
174
|
+
end
|
|
175
|
+
hash
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
# Outputs non-array value in the form of hash
|
|
179
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
180
|
+
# @param [Object] value Any valid value
|
|
181
|
+
# @return [Hash] Returns the value in the form of hash
|
|
182
|
+
def _to_hash(value)
|
|
183
|
+
if value.is_a?(Array)
|
|
184
|
+
value.compact.map { |v| _to_hash(v) }
|
|
185
|
+
elsif value.is_a?(Hash)
|
|
186
|
+
{}.tap do |hash|
|
|
187
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
188
|
+
end
|
|
189
|
+
elsif value.respond_to? :to_hash
|
|
190
|
+
value.to_hash
|
|
191
|
+
else
|
|
192
|
+
value
|
|
193
|
+
end
|
|
194
|
+
end
|
|
195
|
+
end
|
|
196
|
+
end
|
|
@@ -23,6 +23,8 @@ module CyberSource
|
|
|
23
23
|
|
|
24
24
|
attr_accessor :subscription_information
|
|
25
25
|
|
|
26
|
+
attr_accessor :client_reference_information
|
|
27
|
+
|
|
26
28
|
attr_accessor :payment_information
|
|
27
29
|
|
|
28
30
|
attr_accessor :order_information
|
|
@@ -34,6 +36,7 @@ module CyberSource
|
|
|
34
36
|
:'id' => :'id',
|
|
35
37
|
:'plan_information' => :'planInformation',
|
|
36
38
|
:'subscription_information' => :'subscriptionInformation',
|
|
39
|
+
:'client_reference_information' => :'clientReferenceInformation',
|
|
37
40
|
:'payment_information' => :'paymentInformation',
|
|
38
41
|
:'order_information' => :'orderInformation'
|
|
39
42
|
}
|
|
@@ -46,6 +49,7 @@ module CyberSource
|
|
|
46
49
|
:'id' => :'id',
|
|
47
50
|
:'plan_information' => :'plan_information',
|
|
48
51
|
:'subscription_information' => :'subscription_information',
|
|
52
|
+
:'client_reference_information' => :'client_reference_information',
|
|
49
53
|
:'payment_information' => :'payment_information',
|
|
50
54
|
:'order_information' => :'order_information'
|
|
51
55
|
}
|
|
@@ -58,6 +62,7 @@ module CyberSource
|
|
|
58
62
|
:'id' => :'String',
|
|
59
63
|
:'plan_information' => :'GetAllSubscriptionsResponsePlanInformation',
|
|
60
64
|
:'subscription_information' => :'GetAllSubscriptionsResponseSubscriptionInformation',
|
|
65
|
+
:'client_reference_information' => :'GetAllSubscriptionsResponseClientReferenceInformation',
|
|
61
66
|
:'payment_information' => :'GetAllSubscriptionsResponsePaymentInformation',
|
|
62
67
|
:'order_information' => :'GetAllSubscriptionsResponseOrderInformation'
|
|
63
68
|
}
|
|
@@ -87,6 +92,10 @@ module CyberSource
|
|
|
87
92
|
self.subscription_information = attributes[:'subscriptionInformation']
|
|
88
93
|
end
|
|
89
94
|
|
|
95
|
+
if attributes.has_key?(:'clientReferenceInformation')
|
|
96
|
+
self.client_reference_information = attributes[:'clientReferenceInformation']
|
|
97
|
+
end
|
|
98
|
+
|
|
90
99
|
if attributes.has_key?(:'paymentInformation')
|
|
91
100
|
self.payment_information = attributes[:'paymentInformation']
|
|
92
101
|
end
|
|
@@ -124,6 +133,7 @@ module CyberSource
|
|
|
124
133
|
id == o.id &&
|
|
125
134
|
plan_information == o.plan_information &&
|
|
126
135
|
subscription_information == o.subscription_information &&
|
|
136
|
+
client_reference_information == o.client_reference_information &&
|
|
127
137
|
payment_information == o.payment_information &&
|
|
128
138
|
order_information == o.order_information
|
|
129
139
|
end
|
|
@@ -137,7 +147,7 @@ module CyberSource
|
|
|
137
147
|
# Calculates hash code according to all attributes.
|
|
138
148
|
# @return [Fixnum] Hash code
|
|
139
149
|
def hash
|
|
140
|
-
[_links, id, plan_information, subscription_information, payment_information, order_information].hash
|
|
150
|
+
[_links, id, plan_information, subscription_information, client_reference_information, payment_information, order_information].hash
|
|
141
151
|
end
|
|
142
152
|
|
|
143
153
|
# Builds the object from hash
|
|
@@ -29,6 +29,8 @@ module CyberSource
|
|
|
29
29
|
|
|
30
30
|
attr_accessor :order_information
|
|
31
31
|
|
|
32
|
+
attr_accessor :client_reference_information
|
|
33
|
+
|
|
32
34
|
attr_accessor :reactivation_information
|
|
33
35
|
|
|
34
36
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -41,6 +43,7 @@ module CyberSource
|
|
|
41
43
|
:'subscription_information' => :'subscriptionInformation',
|
|
42
44
|
:'payment_information' => :'paymentInformation',
|
|
43
45
|
:'order_information' => :'orderInformation',
|
|
46
|
+
:'client_reference_information' => :'clientReferenceInformation',
|
|
44
47
|
:'reactivation_information' => :'reactivationInformation'
|
|
45
48
|
}
|
|
46
49
|
end
|
|
@@ -55,6 +58,7 @@ module CyberSource
|
|
|
55
58
|
:'subscription_information' => :'subscription_information',
|
|
56
59
|
:'payment_information' => :'payment_information',
|
|
57
60
|
:'order_information' => :'order_information',
|
|
61
|
+
:'client_reference_information' => :'client_reference_information',
|
|
58
62
|
:'reactivation_information' => :'reactivation_information'
|
|
59
63
|
}
|
|
60
64
|
end
|
|
@@ -69,6 +73,7 @@ module CyberSource
|
|
|
69
73
|
:'subscription_information' => :'GetAllSubscriptionsResponseSubscriptionInformation',
|
|
70
74
|
:'payment_information' => :'GetAllSubscriptionsResponsePaymentInformation',
|
|
71
75
|
:'order_information' => :'GetAllSubscriptionsResponseOrderInformation',
|
|
76
|
+
:'client_reference_information' => :'GetAllSubscriptionsResponseClientReferenceInformation',
|
|
72
77
|
:'reactivation_information' => :'GetSubscriptionResponseReactivationInformation'
|
|
73
78
|
}
|
|
74
79
|
end
|
|
@@ -109,6 +114,10 @@ module CyberSource
|
|
|
109
114
|
self.order_information = attributes[:'orderInformation']
|
|
110
115
|
end
|
|
111
116
|
|
|
117
|
+
if attributes.has_key?(:'clientReferenceInformation')
|
|
118
|
+
self.client_reference_information = attributes[:'clientReferenceInformation']
|
|
119
|
+
end
|
|
120
|
+
|
|
112
121
|
if attributes.has_key?(:'reactivationInformation')
|
|
113
122
|
self.reactivation_information = attributes[:'reactivationInformation']
|
|
114
123
|
end
|
|
@@ -145,6 +154,7 @@ module CyberSource
|
|
|
145
154
|
subscription_information == o.subscription_information &&
|
|
146
155
|
payment_information == o.payment_information &&
|
|
147
156
|
order_information == o.order_information &&
|
|
157
|
+
client_reference_information == o.client_reference_information &&
|
|
148
158
|
reactivation_information == o.reactivation_information
|
|
149
159
|
end
|
|
150
160
|
|
|
@@ -157,7 +167,7 @@ module CyberSource
|
|
|
157
167
|
# Calculates hash code according to all attributes.
|
|
158
168
|
# @return [Fixnum] Hash code
|
|
159
169
|
def hash
|
|
160
|
-
[_links, id, submit_time_utc, plan_information, subscription_information, payment_information, order_information, reactivation_information].hash
|
|
170
|
+
[_links, id, submit_time_utc, plan_information, subscription_information, payment_information, order_information, client_reference_information, reactivation_information].hash
|
|
161
171
|
end
|
|
162
172
|
|
|
163
173
|
# Builds the object from hash
|
|
@@ -53,7 +53,7 @@ module CyberSource
|
|
|
53
53
|
:'id' => :'String',
|
|
54
54
|
:'bank_account' => :'GetSubscriptionResponse1PaymentInstrumentBankAccount',
|
|
55
55
|
:'card' => :'GetSubscriptionResponse1PaymentInstrumentCard',
|
|
56
|
-
:'bill_to' => :'
|
|
56
|
+
:'bill_to' => :'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBillTo',
|
|
57
57
|
:'buyer_information' => :'GetSubscriptionResponse1PaymentInstrumentBuyerInformation'
|
|
58
58
|
}
|
|
59
59
|
end
|
|
@@ -50,7 +50,7 @@ module CyberSource
|
|
|
50
50
|
:'company_tax_id' => :'String',
|
|
51
51
|
:'currency' => :'String',
|
|
52
52
|
:'date_of_birth' => :'Date',
|
|
53
|
-
:'personal_identification' => :'Array<
|
|
53
|
+
:'personal_identification' => :'Array<Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBuyerInformationPersonalIdentification>'
|
|
54
54
|
}
|
|
55
55
|
end
|
|
56
56
|
|