cybersource_rest_client 0.0.75 → 0.0.77
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 +6 -17
- data/lib/AuthenticationSDK/core/MerchantConfig.rb +132 -54
- data/lib/AuthenticationSDK/util/Cache.rb +135 -30
- data/lib/AuthenticationSDK/util/CacheValue.rb +18 -0
- data/lib/AuthenticationSDK/util/CertificateUtility.rb +124 -0
- data/lib/AuthenticationSDK/util/Constants.rb +6 -0
- data/lib/AuthenticationSDK/util/JWEUtility.rb +1 -2
- data/lib/AuthenticationSDK/util/MLEUtility.rb +26 -35
- data/lib/AuthenticationSDK/util/Utility.rb +1 -16
- data/lib/cybersource_rest_client/api/batches_api.rb +17 -17
- data/lib/cybersource_rest_client/api/billing_agreements_api.rb +6 -6
- data/lib/cybersource_rest_client/api/bin_lookup_api.rb +2 -2
- data/lib/cybersource_rest_client/api/capture_api.rb +2 -2
- data/lib/cybersource_rest_client/api/chargeback_details_api.rb +2 -2
- data/lib/cybersource_rest_client/api/chargeback_summaries_api.rb +2 -2
- data/lib/cybersource_rest_client/api/conversion_details_api.rb +2 -2
- data/lib/cybersource_rest_client/api/create_new_webhooks_api.rb +6 -6
- data/lib/cybersource_rest_client/api/credit_api.rb +2 -2
- data/lib/cybersource_rest_client/api/customer_api.rb +8 -8
- data/lib/cybersource_rest_client/api/customer_payment_instrument_api.rb +10 -10
- data/lib/cybersource_rest_client/api/customer_shipping_address_api.rb +10 -10
- data/lib/cybersource_rest_client/api/decision_manager_api.rb +10 -10
- data/lib/cybersource_rest_client/api/device_de_association_api.rb +7 -7
- data/lib/cybersource_rest_client/api/device_search_api.rb +10 -10
- data/lib/cybersource_rest_client/api/download_dtd_api.rb +2 -2
- data/lib/cybersource_rest_client/api/download_xsd_api.rb +2 -2
- data/lib/cybersource_rest_client/api/emv_tag_details_api.rb +4 -4
- data/lib/cybersource_rest_client/api/flex_api_api.rb +2 -2
- data/lib/cybersource_rest_client/api/instrument_identifier_api.rb +12 -12
- data/lib/cybersource_rest_client/api/interchange_clearing_level_details_api.rb +2 -2
- data/lib/cybersource_rest_client/api/invoice_settings_api.rb +4 -4
- data/lib/cybersource_rest_client/api/invoices_api.rb +87 -12
- data/lib/cybersource_rest_client/api/manage_webhooks_api.rb +18 -17
- data/lib/cybersource_rest_client/api/merchant_boarding_api.rb +4 -4
- data/lib/cybersource_rest_client/api/microform_integration_api.rb +2 -2
- data/lib/cybersource_rest_client/api/net_fundings_api.rb +2 -2
- data/lib/cybersource_rest_client/api/notification_of_changes_api.rb +2 -2
- data/lib/cybersource_rest_client/api/orders_api.rb +4 -4
- data/lib/cybersource_rest_client/api/payer_authentication_api.rb +6 -6
- data/lib/cybersource_rest_client/api/payment_batch_summaries_api.rb +2 -2
- data/lib/cybersource_rest_client/api/payment_instrument_api.rb +8 -8
- data/lib/cybersource_rest_client/api/payment_links_api.rb +12 -12
- data/lib/cybersource_rest_client/api/payment_tokens_api.rb +2 -2
- data/lib/cybersource_rest_client/api/payments_api.rb +12 -12
- data/lib/cybersource_rest_client/api/payouts_api.rb +2 -2
- data/lib/cybersource_rest_client/api/plans_api.rb +16 -16
- data/lib/cybersource_rest_client/api/purchase_and_refund_details_api.rb +2 -2
- data/lib/cybersource_rest_client/api/push_funds_api.rb +2 -2
- data/lib/cybersource_rest_client/api/refund_api.rb +4 -4
- data/lib/cybersource_rest_client/api/report_definitions_api.rb +4 -4
- data/lib/cybersource_rest_client/api/report_downloads_api.rb +2 -2
- data/lib/cybersource_rest_client/api/report_subscriptions_api.rb +10 -10
- data/lib/cybersource_rest_client/api/reports_api.rb +6 -6
- data/lib/cybersource_rest_client/api/retrieval_details_api.rb +2 -2
- data/lib/cybersource_rest_client/api/retrieval_summaries_api.rb +2 -2
- data/lib/cybersource_rest_client/api/reversal_api.rb +4 -4
- data/lib/cybersource_rest_client/api/search_transactions_api.rb +4 -4
- data/lib/cybersource_rest_client/api/secure_file_share_api.rb +4 -4
- data/lib/cybersource_rest_client/api/subscriptions_api.rb +16 -16
- data/lib/cybersource_rest_client/api/subscriptions_follow_ons_api.rb +4 -4
- data/lib/cybersource_rest_client/api/taxes_api.rb +4 -4
- data/lib/cybersource_rest_client/api/token_api.rb +4 -4
- data/lib/cybersource_rest_client/api/tokenized_card_api.rb +6 -6
- data/lib/cybersource_rest_client/api/transaction_batches_api.rb +8 -8
- data/lib/cybersource_rest_client/api/transaction_details_api.rb +2 -2
- data/lib/cybersource_rest_client/api/transient_token_data_api.rb +4 -4
- data/lib/cybersource_rest_client/api/unified_checkout_capture_context_api.rb +2 -2
- data/lib/cybersource_rest_client/api/user_management_api.rb +2 -2
- data/lib/cybersource_rest_client/api/user_management_search_api.rb +2 -2
- data/lib/cybersource_rest_client/api/verification_api.rb +4 -4
- data/lib/cybersource_rest_client/api/void_api.rb +10 -10
- data/lib/cybersource_rest_client/api_client.rb +3 -1
- data/lib/cybersource_rest_client/ethon_extensions.rb +38 -0
- data/lib/cybersource_rest_client/models/create_order_request.rb +269 -269
- data/lib/cybersource_rest_client/models/create_webhook.rb +16 -3
- data/lib/cybersource_rest_client/models/inline_response_200_10.rb +47 -49
- data/lib/cybersource_rest_client/models/{inline_response_200_8__links.rb → inline_response_200_10__links.rb} +18 -17
- data/lib/cybersource_rest_client/models/{inline_response_200_9__links_report.rb → inline_response_200_10__links_report.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_200_9_billing.rb → inline_response_200_10_billing.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_200_11.rb +292 -0
- data/lib/cybersource_rest_client/models/{inline_response_200_10_records.rb → inline_response_200_11_records.rb} +3 -3
- data/lib/cybersource_rest_client/models/{inline_response_200_10_response_record.rb → inline_response_200_11_response_record.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_200_10_response_record_additional_updates.rb → inline_response_200_11_response_record_additional_updates.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_200_10_source_record.rb → inline_response_200_11_source_record.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_200_2.rb +253 -253
- data/lib/cybersource_rest_client/models/inline_response_200_4.rb +12 -10
- data/lib/cybersource_rest_client/models/inline_response_200_5.rb +129 -51
- data/lib/cybersource_rest_client/models/inline_response_200_6.rb +55 -10
- data/lib/cybersource_rest_client/models/{inline_response_200_5_devices.rb → inline_response_200_6_devices.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_200_7.rb +10 -55
- data/lib/cybersource_rest_client/models/inline_response_200_8.rb +33 -37
- data/lib/cybersource_rest_client/models/{inline_response_200_7_devices.rb → inline_response_200_8_devices.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_200_7_payment_processor_to_terminal_map.rb → inline_response_200_8_payment_processor_to_terminal_map.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_200_9.rb +47 -86
- data/lib/cybersource_rest_client/models/{inline_response_200_8__embedded.rb → inline_response_200_9__embedded.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_200_8__embedded__links.rb → inline_response_200_9__embedded__links.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_200_8__embedded__links_reports.rb → inline_response_200_9__embedded__links_reports.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_200_8__embedded_batches.rb → inline_response_200_9__embedded_batches.rb} +3 -3
- data/lib/cybersource_rest_client/models/{inline_response_200_8__embedded_totals.rb → inline_response_200_9__embedded_totals.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_200_9__links.rb +16 -17
- data/lib/cybersource_rest_client/models/inline_response_201.rb +227 -227
- data/lib/cybersource_rest_client/models/inline_response_201_1.rb +218 -218
- data/lib/cybersource_rest_client/models/inline_response_201_2.rb +248 -248
- data/lib/cybersource_rest_client/models/inline_response_201_2_payout_information.rb +216 -216
- data/lib/cybersource_rest_client/models/inline_response_201_2_payout_information_pull_funds.rb +213 -213
- data/lib/cybersource_rest_client/models/inline_response_201_2_payout_information_push_funds.rb +417 -417
- data/lib/cybersource_rest_client/models/inline_response_201_3.rb +281 -281
- data/lib/cybersource_rest_client/models/inline_response_201_3_integration_information.rb +192 -192
- data/lib/cybersource_rest_client/models/inline_response_201_3_integration_information_tenant_configurations.rb +253 -253
- data/lib/cybersource_rest_client/models/inline_response_201_3_organization_information.rb +217 -217
- data/lib/cybersource_rest_client/models/inline_response_201_3_product_information_setups.rb +214 -214
- data/lib/cybersource_rest_client/models/inline_response_201_3_registration_information.rb +222 -222
- data/lib/cybersource_rest_client/models/inline_response_201_3_setups.rb +219 -219
- data/lib/cybersource_rest_client/models/inline_response_201_3_setups_commerce_solutions.rb +209 -209
- data/lib/cybersource_rest_client/models/inline_response_201_3_setups_payments.rb +369 -369
- data/lib/cybersource_rest_client/models/inline_response_201_3_setups_payments_alternative_payment_methods.rb +221 -221
- data/lib/cybersource_rest_client/models/inline_response_201_3_setups_payments_alternative_payment_methods_configuration_status.rb +200 -200
- data/lib/cybersource_rest_client/models/inline_response_201_3_setups_payments_card_processing.rb +199 -199
- data/lib/cybersource_rest_client/models/inline_response_201_3_setups_payments_card_processing_configuration_status.rb +255 -255
- data/lib/cybersource_rest_client/models/inline_response_201_3_setups_payments_card_processing_subscription_status.rb +234 -234
- data/lib/cybersource_rest_client/models/inline_response_201_3_setups_payments_digital_payments.rb +189 -189
- data/lib/cybersource_rest_client/models/inline_response_201_3_setups_risk.rb +199 -199
- data/lib/cybersource_rest_client/models/inline_response_201_3_setups_value_added_services.rb +209 -209
- data/lib/cybersource_rest_client/models/inline_response_201_4.rb +222 -222
- data/lib/cybersource_rest_client/models/inline_response_201_4_key_information.rb +300 -300
- data/lib/cybersource_rest_client/models/inline_response_201_4_key_information_error_information.rb +202 -202
- data/lib/cybersource_rest_client/models/inline_response_201_4_key_information_error_information_details.rb +201 -201
- data/lib/cybersource_rest_client/models/inline_response_201_5.rb +314 -312
- data/lib/cybersource_rest_client/models/inline_response_201_6.rb +277 -277
- data/lib/cybersource_rest_client/models/inline_response_201_6_payloads.rb +189 -189
- data/lib/cybersource_rest_client/models/inline_response_201_6_payloads_test_payload.rb +190 -190
- data/lib/cybersource_rest_client/models/inline_response_201_7.rb +202 -202
- data/lib/cybersource_rest_client/models/inline_response_201_order_information.rb +189 -189
- data/lib/cybersource_rest_client/models/inline_response_201_order_information_ship_to.rb +315 -315
- data/lib/cybersource_rest_client/models/inline_response_201_payment_information.rb +199 -199
- data/lib/cybersource_rest_client/models/inline_response_201_payment_information_e_wallet.rb +196 -196
- data/lib/cybersource_rest_client/models/inline_response_201_payment_information_tokenized_payment_method.rb +213 -213
- data/lib/cybersource_rest_client/models/invoicing_v2_invoice_settings_get200_response_invoice_settings_information.rb +18 -5
- data/lib/cybersource_rest_client/models/invoicing_v2_invoices_post201_response_invoice_information.rb +18 -5
- data/lib/cybersource_rest_client/models/{notificationsubscriptionsv2webhooks_security_policy_1_config.rb → invoicing_v2_invoices_post201_response_invoice_information_custom_labels.rb} +57 -34
- data/lib/cybersource_rest_client/models/invoicing_v2_invoices_publish200_response.rb +268 -0
- data/lib/cybersource_rest_client/models/invoicingv2invoice_settings_invoice_settings_information.rb +18 -5
- data/lib/cybersource_rest_client/models/notificationsubscriptionsv2webhooks_retry_policy.rb +2 -0
- data/lib/cybersource_rest_client/models/notificationsubscriptionsv2webhooks_security_policy.rb +1 -1
- data/lib/cybersource_rest_client/models/notificationsubscriptionsv2webhooks_security_policy_config.rb +16 -17
- data/lib/cybersource_rest_client/models/{notificationsubscriptionsv2webhooks_security_policy_1_config_additional_config.rb → notificationsubscriptionsv2webhooks_security_policy_config_additional_config.rb} +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_installment_information.rb +609 -609
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_account_information_card.rb +269 -269
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information.rb +364 -364
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_tokenized_card.rb +309 -309
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_tokenized_payment_method.rb +213 -213
- data/lib/cybersource_rest_client/models/pts_v2_retrieve_payment_token_get400_response.rb +252 -252
- data/lib/cybersource_rest_client/models/pts_v2_retrieve_payment_token_get502_response.rb +240 -240
- data/lib/cybersource_rest_client/models/ptsv2billingagreements_payment_information_card.rb +258 -258
- data/lib/cybersource_rest_client/models/ptsv2billingagreements_payment_information_tokenized_card.rb +275 -275
- data/lib/cybersource_rest_client/models/ptsv2intents_event_information.rb +212 -212
- data/lib/cybersource_rest_client/models/ptsv2intents_order_information_ship_to.rb +354 -354
- data/lib/cybersource_rest_client/models/ptsv2intents_payment_information.rb +220 -220
- data/lib/cybersource_rest_client/models/ptsv2intents_payment_information_e_wallet.rb +196 -196
- data/lib/cybersource_rest_client/models/ptsv2intents_payment_information_tokenized_payment_method.rb +241 -241
- data/lib/cybersource_rest_client/models/ptsv2intents_processing_information.rb +351 -351
- data/lib/cybersource_rest_client/models/ptsv2intents_recipient_information.rb +245 -245
- data/lib/cybersource_rest_client/models/ptsv2intents_sender_information.rb +277 -277
- data/lib/cybersource_rest_client/models/ptsv2intents_sender_information_account.rb +190 -190
- data/lib/cybersource_rest_client/models/ptsv2intents_travel_information.rb +211 -211
- data/lib/cybersource_rest_client/models/ptsv2intents_travel_information_agency.rb +245 -245
- data/lib/cybersource_rest_client/models/ptsv2intentsid_payment_information.rb +189 -189
- data/lib/cybersource_rest_client/models/ptsv2paymentreferences_order_information_amount_details.rb +417 -417
- data/lib/cybersource_rest_client/models/ptsv2paymentreferences_payment_information_card.rb +275 -275
- data/lib/cybersource_rest_client/models/ptsv2payments_installment_information.rb +461 -433
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details.rb +668 -668
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_line_items.rb +716 -716
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information.rb +356 -356
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_card.rb +445 -445
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_payment_type_method.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_tokenized_card.rb +377 -377
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_tokenized_payment_method.rb +196 -196
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_installment_information.rb +604 -604
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_payment_information_payment_type_method.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_card.rb +377 -377
- data/lib/cybersource_rest_client/models/ptsv2paymenttokens_payment_information.rb +199 -199
- data/lib/cybersource_rest_client/models/ptsv2paymenttokens_processing_information.rb +192 -192
- data/lib/cybersource_rest_client/models/ptsv2payouts_payment_information_card.rb +258 -258
- data/lib/cybersource_rest_client/models/request.rb +199 -199
- data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information_card.rb +241 -241
- data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information_tokenized_card.rb +258 -258
- data/lib/cybersource_rest_client/models/riskv1authentications_payment_information_tokenized_card.rb +351 -351
- data/lib/cybersource_rest_client/models/riskv1authenticationsetups_payment_information_card.rb +268 -268
- data/lib/cybersource_rest_client/models/riskv1authenticationsetups_payment_information_tokenized_card.rb +299 -299
- data/lib/cybersource_rest_client/models/riskv1decisions_payment_information_card.rb +259 -259
- data/lib/cybersource_rest_client/models/riskv1decisions_payment_information_tokenized_card.rb +259 -259
- data/lib/cybersource_rest_client/models/riskv1liststypeentries_payment_information_card.rb +224 -224
- data/lib/cybersource_rest_client/models/tms_bin_lookup_issuer_information.rb +264 -264
- data/lib/cybersource_rest_client/models/tms_bin_lookup_payment_account_information_card.rb +277 -277
- data/lib/cybersource_rest_client/models/tms_bin_lookup_payment_account_information_card_brands.rb +213 -213
- data/lib/cybersource_rest_client/models/tms_bin_lookup_payment_account_information_features.rb +430 -430
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response.rb +11 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_bank_account_validation.rb +211 -0
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_brands.rb +201 -201
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_card.rb +365 -365
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information.rb +16 -5
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processor_information.rb +15 -5
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information_card.rb +218 -218
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_processor_information.rb +245 -245
- data/lib/cybersource_rest_client/models/update_order_request.rb +229 -229
- data/lib/cybersource_rest_client/models/update_webhook.rb +19 -19
- data/lib/cybersource_rest_client.rb +20 -18
- metadata +25 -20
- data/lib/cybersource_rest_client/models/notificationsubscriptionsv2webhooks_security_policy_1.rb +0 -201
@@ -1,16 +1,21 @@
|
|
1
1
|
require_relative '../logging/log_factory.rb'
|
2
2
|
require 'jose'
|
3
3
|
require_relative './Cache'
|
4
|
-
require 'active_support'
|
5
4
|
|
6
5
|
public
|
7
6
|
class MLEUtility
|
8
7
|
@log_obj = nil
|
9
|
-
def self.check_is_mle_for_API(merchant_config,
|
8
|
+
def self.check_is_mle_for_API(merchant_config, inbound_mle_status, operation_ids)
|
10
9
|
is_mle_for_api = false
|
11
|
-
|
10
|
+
|
11
|
+
if inbound_mle_status&.casecmp('optional') == 0 && merchant_config.enableRequestMLEForOptionalApisGlobally
|
12
12
|
is_mle_for_api = true
|
13
13
|
end
|
14
|
+
|
15
|
+
if inbound_mle_status&.casecmp('mandatory') == 0
|
16
|
+
is_mle_for_api = !merchant_config.disableRequestMLEForMandatoryApisGlobally
|
17
|
+
end
|
18
|
+
|
14
19
|
if merchant_config.mapToControlMLEonAPI && operation_ids
|
15
20
|
operation_ids.each do |operation_id|
|
16
21
|
if merchant_config.mapToControlMLEonAPI.key?(operation_id)
|
@@ -22,31 +27,31 @@ public
|
|
22
27
|
is_mle_for_api
|
23
28
|
end
|
24
29
|
|
25
|
-
def self.encrypt_request_payload(
|
26
|
-
return nil if
|
27
|
-
return
|
28
|
-
|
30
|
+
def self.encrypt_request_payload(merchantConfig, requestBody)
|
31
|
+
return nil if requestBody.nil?
|
32
|
+
return requestBody if requestBody == '{}'
|
33
|
+
|
34
|
+
@log_obj ||= Log.new(merchantConfig.log_config, 'MLEUtility')
|
35
|
+
|
29
36
|
@log_obj.logger.info('Encrypting request payload')
|
30
|
-
@log_obj.logger.debug('LOG_REQUEST_BEFORE_MLE: ' +
|
37
|
+
@log_obj.logger.debug('LOG_REQUEST_BEFORE_MLE: ' + requestBody)
|
38
|
+
|
39
|
+
mleCertificate = Cache.new.getRequestMLECertificateFromCache(merchantConfig)
|
40
|
+
|
41
|
+
if mleCertificate.nil? && Constants::AUTH_TYPE_HTTP.downcase == merchantConfig.authenticationType.downcase
|
42
|
+
@log_obj.logger.debug("The certificate to use for MLE for requests is not provided in the merchant configuration. Please ensure that the certificate path is provided.")
|
43
|
+
@log_obj.logger.debug("Currently, MLE for requests using HTTP Signature as authentication is not supported by Cybersource. By default, the SDK will fall back to non-encrypted requests.")
|
44
|
+
return requestBody
|
45
|
+
end
|
31
46
|
|
32
47
|
begin
|
33
|
-
|
34
|
-
p12_file = File.binread(file_path)
|
35
|
-
cache_obj = ActiveSupport::Cache::MemoryStore.new
|
36
|
-
cert_der = Cache.new.fetchCachedCertificate(merchant_config.keysDirectory, p12_file, merchant_config.keyPass, merchant_config.mleKeyAlias, cache_obj)
|
37
|
-
if cert_der.nil?
|
38
|
-
@log_obj.logger.error('Failed to get certificate for MLE')
|
39
|
-
raise StandardError.new('Failed to get certificate for MLE')
|
40
|
-
end
|
41
|
-
certificate = OpenSSL::X509::Certificate.new(Base64.decode64(cert_der))
|
42
|
-
validate_certificate(certificate, merchant_config.mleKeyAlias, @log_obj)
|
43
|
-
serial_number = extract_serial_number_from_certificate(certificate)
|
48
|
+
serial_number = extract_serial_number_from_certificate(mleCertificate)
|
44
49
|
if serial_number.nil?
|
45
50
|
@log_obj.logger.error('Serial number not found in certificate for MLE')
|
46
51
|
raise StandardError.new('Serial number not found in MLE certificate')
|
47
52
|
end
|
48
53
|
|
49
|
-
jwk = JOSE::JWK.from_key(
|
54
|
+
jwk = JOSE::JWK.from_key(mleCertificate.public_key)
|
50
55
|
if jwk.nil?
|
51
56
|
@log_obj.logger.error('Failed to create JWK object from public key')
|
52
57
|
raise StandardError.new('Failed to create JWK object from public key')
|
@@ -58,7 +63,7 @@ public
|
|
58
63
|
'kid' => serial_number,
|
59
64
|
'iat' => Time.now.to_i
|
60
65
|
}
|
61
|
-
jwe = JOSE::JWE.block_encrypt(jwk,
|
66
|
+
jwe = JOSE::JWE.block_encrypt(jwk, requestBody, headers)
|
62
67
|
|
63
68
|
compact_jwe = jwe.compact
|
64
69
|
mle_request_body = create_request_payload(compact_jwe)
|
@@ -70,20 +75,6 @@ public
|
|
70
75
|
end
|
71
76
|
end
|
72
77
|
|
73
|
-
def self.validate_certificate(certificate, mle_key_alias, log_obj)
|
74
|
-
if certificate.not_after.nil?
|
75
|
-
log_obj.logger.warn("Certificate for MLE don't have expiry date.")
|
76
|
-
elsif certificate.not_after < Time.now
|
77
|
-
log_obj.logger.warn('Certificate with MLE alias ' + mle_key_alias + ' is expired as of ' + certificate.not_after.to_s + ". Please update p12 file.")
|
78
|
-
# raise StandardError.new('Certificate required for MLE has been expired on : ' + certificate.not_after.to_s)
|
79
|
-
else
|
80
|
-
time_to_expire = certificate.not_after - Time.now
|
81
|
-
if time_to_expire < Constants::CERTIFICATE_EXPIRY_DATE_WARNING_DAYS * 24 * 60 * 60
|
82
|
-
log_obj.logger.warn('Certificate with MLE alias ' + mle_key_alias + ' is going to expired on ' + certificate.not_after.to_s + ". Please update p12 file before that.")
|
83
|
-
end
|
84
|
-
end
|
85
|
-
end
|
86
|
-
|
87
78
|
def self.extract_serial_number_from_certificate(certificate)
|
88
79
|
return nil if certificate.subject.to_s.empty? && certificate.issuer.to_s.empty?
|
89
80
|
certificate.subject.to_a.each do |attribute|
|
@@ -32,20 +32,5 @@ public
|
|
32
32
|
end
|
33
33
|
return tempResponseCodeMessage
|
34
34
|
end
|
35
|
+
end
|
35
36
|
|
36
|
-
def fetchCert(key_pass, file, key_alias)
|
37
|
-
p12_file = OpenSSL::PKCS12.new(file, key_pass)
|
38
|
-
x5_cert_pem = p12_file.certificate
|
39
|
-
x5_cert_pem.subject.to_a.each do |attribute|
|
40
|
-
return Base64.strict_encode64(x5_cert_pem.to_der) if attribute[1].include?(key_alias)
|
41
|
-
end
|
42
|
-
unless p12_file.ca_certs.nil?
|
43
|
-
p12_file.ca_certs.each do |cert|
|
44
|
-
cert.subject.to_a.each do |attribute|
|
45
|
-
return Base64.strict_encode64(cert.to_der) if attribute[1].include?(key_alias)
|
46
|
-
end
|
47
|
-
end
|
48
|
-
end
|
49
|
-
nil
|
50
|
-
end
|
51
|
-
end
|
@@ -24,7 +24,7 @@ module CyberSource
|
|
24
24
|
#
|
25
25
|
# @param batch_id Unique identification number assigned to the submitted request.
|
26
26
|
# @param [Hash] opts the optional parameters
|
27
|
-
# @return [
|
27
|
+
# @return [InlineResponse20011]
|
28
28
|
#
|
29
29
|
def get_batch_report(batch_id, opts = {})
|
30
30
|
data, status_code, headers = get_batch_report_with_http_info(batch_id, opts)
|
@@ -35,7 +35,7 @@ module CyberSource
|
|
35
35
|
# **Get Batch Report**<br>This resource accepts a batch id and returns: - The batch status. - The total number of accepted, rejected, updated records. - The total number of card association responses. - The billable quantities of: - New Account Numbers (NAN) - New Expiry Dates (NED) - Account Closures (ACL) - Contact Card Holders (CCH) - Source record information including token ids, masked card number, expiration dates & card type. - Response record information including response code, reason, token ids, masked card number, expiration dates & card type.
|
36
36
|
# @param batch_id Unique identification number assigned to the submitted request.
|
37
37
|
# @param [Hash] opts the optional parameters
|
38
|
-
# @return [Array<(
|
38
|
+
# @return [Array<(InlineResponse20011, Fixnum, Hash)>] InlineResponse20011 data, response status code and response headers
|
39
39
|
def get_batch_report_with_http_info(batch_id, opts = {})
|
40
40
|
|
41
41
|
if @api_client.config.debugging
|
@@ -76,8 +76,8 @@ module CyberSource
|
|
76
76
|
else
|
77
77
|
post_body = nil
|
78
78
|
end
|
79
|
-
|
80
|
-
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig,
|
79
|
+
inbound_mle_status = "false"
|
80
|
+
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_batch_report","get_batch_report_with_http_info"])
|
81
81
|
post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
|
82
82
|
end
|
83
83
|
auth_names = []
|
@@ -87,7 +87,7 @@ module CyberSource
|
|
87
87
|
:form_params => form_params,
|
88
88
|
:body => post_body,
|
89
89
|
:auth_names => auth_names,
|
90
|
-
:return_type => '
|
90
|
+
:return_type => 'InlineResponse20011')
|
91
91
|
if @api_client.config.debugging
|
92
92
|
begin
|
93
93
|
raise
|
@@ -103,7 +103,7 @@ module CyberSource
|
|
103
103
|
#
|
104
104
|
# @param batch_id Unique identification number assigned to the submitted request.
|
105
105
|
# @param [Hash] opts the optional parameters
|
106
|
-
# @return [
|
106
|
+
# @return [InlineResponse20010]
|
107
107
|
#
|
108
108
|
def get_batch_status(batch_id, opts = {})
|
109
109
|
data, status_code, headers = get_batch_status_with_http_info(batch_id, opts)
|
@@ -114,7 +114,7 @@ module CyberSource
|
|
114
114
|
# **Get Batch Status**<br>This resource accepts a batch id and returns: - The batch status. - The total number of accepted, rejected, updated records. - The total number of card association responses. - The billable quantities of: - New Account Numbers (NAN) - New Expiry Dates (NED) - Account Closures (ACL) - Contact Card Holders (CCH)
|
115
115
|
# @param batch_id Unique identification number assigned to the submitted request.
|
116
116
|
# @param [Hash] opts the optional parameters
|
117
|
-
# @return [Array<(
|
117
|
+
# @return [Array<(InlineResponse20010, Fixnum, Hash)>] InlineResponse20010 data, response status code and response headers
|
118
118
|
def get_batch_status_with_http_info(batch_id, opts = {})
|
119
119
|
|
120
120
|
if @api_client.config.debugging
|
@@ -155,8 +155,8 @@ module CyberSource
|
|
155
155
|
else
|
156
156
|
post_body = nil
|
157
157
|
end
|
158
|
-
|
159
|
-
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig,
|
158
|
+
inbound_mle_status = "false"
|
159
|
+
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_batch_status","get_batch_status_with_http_info"])
|
160
160
|
post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
|
161
161
|
end
|
162
162
|
auth_names = []
|
@@ -166,7 +166,7 @@ module CyberSource
|
|
166
166
|
:form_params => form_params,
|
167
167
|
:body => post_body,
|
168
168
|
:auth_names => auth_names,
|
169
|
-
:return_type => '
|
169
|
+
:return_type => 'InlineResponse20010')
|
170
170
|
if @api_client.config.debugging
|
171
171
|
begin
|
172
172
|
raise
|
@@ -185,7 +185,7 @@ module CyberSource
|
|
185
185
|
# @option opts [Integer] :limit The maximum number that can be returned in the array starting from the offset record in zero-based dataset. (default to 20)
|
186
186
|
# @option opts [String] :from_date ISO-8601 format: yyyyMMddTHHmmssZ
|
187
187
|
# @option opts [String] :to_date ISO-8601 format: yyyyMMddTHHmmssZ
|
188
|
-
# @return [
|
188
|
+
# @return [InlineResponse2009]
|
189
189
|
#
|
190
190
|
def get_batches_list(opts = {})
|
191
191
|
data, status_code, headers = get_batches_list_with_http_info(opts)
|
@@ -199,7 +199,7 @@ module CyberSource
|
|
199
199
|
# @option opts [Integer] :limit The maximum number that can be returned in the array starting from the offset record in zero-based dataset.
|
200
200
|
# @option opts [String] :from_date ISO-8601 format: yyyyMMddTHHmmssZ
|
201
201
|
# @option opts [String] :to_date ISO-8601 format: yyyyMMddTHHmmssZ
|
202
|
-
# @return [Array<(
|
202
|
+
# @return [Array<(InlineResponse2009, Fixnum, Hash)>] InlineResponse2009 data, response status code and response headers
|
203
203
|
def get_batches_list_with_http_info(opts = {})
|
204
204
|
|
205
205
|
if @api_client.config.debugging
|
@@ -236,8 +236,8 @@ module CyberSource
|
|
236
236
|
else
|
237
237
|
post_body = nil
|
238
238
|
end
|
239
|
-
|
240
|
-
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig,
|
239
|
+
inbound_mle_status = "false"
|
240
|
+
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_batches_list","get_batches_list_with_http_info"])
|
241
241
|
post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
|
242
242
|
end
|
243
243
|
auth_names = []
|
@@ -247,7 +247,7 @@ module CyberSource
|
|
247
247
|
:form_params => form_params,
|
248
248
|
:body => post_body,
|
249
249
|
:auth_names => auth_names,
|
250
|
-
:return_type => '
|
250
|
+
:return_type => 'InlineResponse2009')
|
251
251
|
if @api_client.config.debugging
|
252
252
|
begin
|
253
253
|
raise
|
@@ -309,8 +309,8 @@ module CyberSource
|
|
309
309
|
post_body = @api_client.object_to_http_body(body)
|
310
310
|
sdk_tracker = SdkTracker.new
|
311
311
|
post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'Body', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
|
312
|
-
|
313
|
-
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig,
|
312
|
+
inbound_mle_status = "false"
|
313
|
+
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["post_batch","post_batch_with_http_info"])
|
314
314
|
post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
|
315
315
|
end
|
316
316
|
auth_names = []
|
@@ -76,8 +76,8 @@ module CyberSource
|
|
76
76
|
post_body = @api_client.object_to_http_body(modify_billing_agreement)
|
77
77
|
sdk_tracker = SdkTracker.new
|
78
78
|
post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'ModifyBillingAgreement', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
|
79
|
-
|
80
|
-
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig,
|
79
|
+
inbound_mle_status = "optional"
|
80
|
+
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["billing_agreements_de_registration","billing_agreements_de_registration_with_http_info"])
|
81
81
|
post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
|
82
82
|
end
|
83
83
|
auth_names = []
|
@@ -155,8 +155,8 @@ module CyberSource
|
|
155
155
|
post_body = @api_client.object_to_http_body(intimate_billing_agreement)
|
156
156
|
sdk_tracker = SdkTracker.new
|
157
157
|
post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'IntimateBillingAgreement', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
|
158
|
-
|
159
|
-
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig,
|
158
|
+
inbound_mle_status = "optional"
|
159
|
+
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["billing_agreements_intimation","billing_agreements_intimation_with_http_info"])
|
160
160
|
post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
|
161
161
|
end
|
162
162
|
auth_names = []
|
@@ -228,8 +228,8 @@ module CyberSource
|
|
228
228
|
post_body = @api_client.object_to_http_body(create_billing_agreement)
|
229
229
|
sdk_tracker = SdkTracker.new
|
230
230
|
post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'CreateBillingAgreement', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
|
231
|
-
|
232
|
-
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig,
|
231
|
+
inbound_mle_status = "optional"
|
232
|
+
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["billing_agreements_registration","billing_agreements_registration_with_http_info"])
|
233
233
|
post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
|
234
234
|
end
|
235
235
|
auth_names = []
|
@@ -71,8 +71,8 @@ module CyberSource
|
|
71
71
|
post_body = @api_client.object_to_http_body(create_bin_lookup_request)
|
72
72
|
sdk_tracker = SdkTracker.new
|
73
73
|
post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'CreateBinLookupRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
|
74
|
-
|
75
|
-
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig,
|
74
|
+
inbound_mle_status = "false"
|
75
|
+
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_account_info","get_account_info_with_http_info"])
|
76
76
|
post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
|
77
77
|
end
|
78
78
|
auth_names = []
|
@@ -76,8 +76,8 @@ module CyberSource
|
|
76
76
|
post_body = @api_client.object_to_http_body(capture_payment_request)
|
77
77
|
sdk_tracker = SdkTracker.new
|
78
78
|
post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'CapturePaymentRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
|
79
|
-
|
80
|
-
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig,
|
79
|
+
inbound_mle_status = "optional"
|
80
|
+
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["capture_payment","capture_payment_with_http_info"])
|
81
81
|
post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
|
82
82
|
end
|
83
83
|
auth_names = []
|
@@ -87,8 +87,8 @@ module CyberSource
|
|
87
87
|
else
|
88
88
|
post_body = nil
|
89
89
|
end
|
90
|
-
|
91
|
-
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig,
|
90
|
+
inbound_mle_status = "false"
|
91
|
+
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_chargeback_details","get_chargeback_details_with_http_info"])
|
92
92
|
post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
|
93
93
|
end
|
94
94
|
auth_names = []
|
@@ -87,8 +87,8 @@ module CyberSource
|
|
87
87
|
else
|
88
88
|
post_body = nil
|
89
89
|
end
|
90
|
-
|
91
|
-
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig,
|
90
|
+
inbound_mle_status = "false"
|
91
|
+
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_chargeback_summaries","get_chargeback_summaries_with_http_info"])
|
92
92
|
post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
|
93
93
|
end
|
94
94
|
auth_names = []
|
@@ -87,8 +87,8 @@ module CyberSource
|
|
87
87
|
else
|
88
88
|
post_body = nil
|
89
89
|
end
|
90
|
-
|
91
|
-
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig,
|
90
|
+
inbound_mle_status = "false"
|
91
|
+
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_conversion_detail","get_conversion_detail_with_http_info"])
|
92
92
|
post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
|
93
93
|
end
|
94
94
|
auth_names = []
|
@@ -72,8 +72,8 @@ module CyberSource
|
|
72
72
|
else
|
73
73
|
post_body = nil
|
74
74
|
end
|
75
|
-
|
76
|
-
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig,
|
75
|
+
inbound_mle_status = "false"
|
76
|
+
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["find_products_to_subscribe","find_products_to_subscribe_with_http_info"])
|
77
77
|
post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
|
78
78
|
end
|
79
79
|
auth_names = []
|
@@ -141,8 +141,8 @@ module CyberSource
|
|
141
141
|
post_body = @api_client.object_to_http_body(opts[:'create_webhook'])
|
142
142
|
sdk_tracker = SdkTracker.new
|
143
143
|
post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'CreateWebhook', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
|
144
|
-
|
145
|
-
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig,
|
144
|
+
inbound_mle_status = "false"
|
145
|
+
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["notification_subscriptions_v2_webhooks_post","notification_subscriptions_v2_webhooks_post_with_http_info"])
|
146
146
|
post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
|
147
147
|
end
|
148
148
|
auth_names = []
|
@@ -235,8 +235,8 @@ module CyberSource
|
|
235
235
|
post_body = @api_client.object_to_http_body(opts[:'save_sym_egress_key'])
|
236
236
|
sdk_tracker = SdkTracker.new
|
237
237
|
post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'SaveSymEgressKey', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
|
238
|
-
|
239
|
-
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig,
|
238
|
+
inbound_mle_status = "false"
|
239
|
+
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["save_sym_egress_key","save_sym_egress_key_with_http_info"])
|
240
240
|
post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
|
241
241
|
end
|
242
242
|
auth_names = []
|
@@ -70,8 +70,8 @@ module CyberSource
|
|
70
70
|
post_body = @api_client.object_to_http_body(create_credit_request)
|
71
71
|
sdk_tracker = SdkTracker.new
|
72
72
|
post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'CreateCreditRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
|
73
|
-
|
74
|
-
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig,
|
73
|
+
inbound_mle_status = "optional"
|
74
|
+
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["create_credit","create_credit_with_http_info"])
|
75
75
|
post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
|
76
76
|
end
|
77
77
|
auth_names = []
|
@@ -75,8 +75,8 @@ module CyberSource
|
|
75
75
|
else
|
76
76
|
post_body = nil
|
77
77
|
end
|
78
|
-
|
79
|
-
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig,
|
78
|
+
inbound_mle_status = "false"
|
79
|
+
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["delete_customer","delete_customer_with_http_info"])
|
80
80
|
post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
|
81
81
|
end
|
82
82
|
auth_names = []
|
@@ -152,8 +152,8 @@ module CyberSource
|
|
152
152
|
else
|
153
153
|
post_body = nil
|
154
154
|
end
|
155
|
-
|
156
|
-
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig,
|
155
|
+
inbound_mle_status = "false"
|
156
|
+
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_customer","get_customer_with_http_info"])
|
157
157
|
post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
|
158
158
|
end
|
159
159
|
auth_names = []
|
@@ -237,8 +237,8 @@ module CyberSource
|
|
237
237
|
post_body = @api_client.object_to_http_body(patch_customer_request)
|
238
238
|
sdk_tracker = SdkTracker.new
|
239
239
|
post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'PatchCustomerRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
|
240
|
-
|
241
|
-
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig,
|
240
|
+
inbound_mle_status = "false"
|
241
|
+
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["patch_customer","patch_customer_with_http_info"])
|
242
242
|
post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
|
243
243
|
end
|
244
244
|
auth_names = []
|
@@ -313,8 +313,8 @@ module CyberSource
|
|
313
313
|
post_body = @api_client.object_to_http_body(post_customer_request)
|
314
314
|
sdk_tracker = SdkTracker.new
|
315
315
|
post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'PostCustomerRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
|
316
|
-
|
317
|
-
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig,
|
316
|
+
inbound_mle_status = "false"
|
317
|
+
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["post_customer","post_customer_with_http_info"])
|
318
318
|
post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
|
319
319
|
end
|
320
320
|
auth_names = []
|
@@ -81,8 +81,8 @@ module CyberSource
|
|
81
81
|
else
|
82
82
|
post_body = nil
|
83
83
|
end
|
84
|
-
|
85
|
-
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig,
|
84
|
+
inbound_mle_status = "false"
|
85
|
+
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["delete_customer_payment_instrument","delete_customer_payment_instrument_with_http_info"])
|
86
86
|
post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
|
87
87
|
end
|
88
88
|
auth_names = []
|
@@ -164,8 +164,8 @@ module CyberSource
|
|
164
164
|
else
|
165
165
|
post_body = nil
|
166
166
|
end
|
167
|
-
|
168
|
-
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig,
|
167
|
+
inbound_mle_status = "false"
|
168
|
+
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_customer_payment_instrument","get_customer_payment_instrument_with_http_info"])
|
169
169
|
post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
|
170
170
|
end
|
171
171
|
auth_names = []
|
@@ -248,8 +248,8 @@ module CyberSource
|
|
248
248
|
else
|
249
249
|
post_body = nil
|
250
250
|
end
|
251
|
-
|
252
|
-
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig,
|
251
|
+
inbound_mle_status = "false"
|
252
|
+
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_customer_payment_instruments_list","get_customer_payment_instruments_list_with_http_info"])
|
253
253
|
post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
|
254
254
|
end
|
255
255
|
auth_names = []
|
@@ -339,8 +339,8 @@ module CyberSource
|
|
339
339
|
post_body = @api_client.object_to_http_body(patch_customer_payment_instrument_request)
|
340
340
|
sdk_tracker = SdkTracker.new
|
341
341
|
post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'PatchCustomerPaymentInstrumentRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
|
342
|
-
|
343
|
-
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig,
|
342
|
+
inbound_mle_status = "false"
|
343
|
+
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["patch_customers_payment_instrument","patch_customers_payment_instrument_with_http_info"])
|
344
344
|
post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
|
345
345
|
end
|
346
346
|
auth_names = []
|
@@ -421,8 +421,8 @@ module CyberSource
|
|
421
421
|
post_body = @api_client.object_to_http_body(post_customer_payment_instrument_request)
|
422
422
|
sdk_tracker = SdkTracker.new
|
423
423
|
post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'PostCustomerPaymentInstrumentRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
|
424
|
-
|
425
|
-
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig,
|
424
|
+
inbound_mle_status = "false"
|
425
|
+
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["post_customer_payment_instrument","post_customer_payment_instrument_with_http_info"])
|
426
426
|
post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
|
427
427
|
end
|
428
428
|
auth_names = []
|
@@ -81,8 +81,8 @@ module CyberSource
|
|
81
81
|
else
|
82
82
|
post_body = nil
|
83
83
|
end
|
84
|
-
|
85
|
-
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig,
|
84
|
+
inbound_mle_status = "false"
|
85
|
+
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["delete_customer_shipping_address","delete_customer_shipping_address_with_http_info"])
|
86
86
|
post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
|
87
87
|
end
|
88
88
|
auth_names = []
|
@@ -164,8 +164,8 @@ module CyberSource
|
|
164
164
|
else
|
165
165
|
post_body = nil
|
166
166
|
end
|
167
|
-
|
168
|
-
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig,
|
167
|
+
inbound_mle_status = "false"
|
168
|
+
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_customer_shipping_address","get_customer_shipping_address_with_http_info"])
|
169
169
|
post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
|
170
170
|
end
|
171
171
|
auth_names = []
|
@@ -248,8 +248,8 @@ module CyberSource
|
|
248
248
|
else
|
249
249
|
post_body = nil
|
250
250
|
end
|
251
|
-
|
252
|
-
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig,
|
251
|
+
inbound_mle_status = "false"
|
252
|
+
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_customer_shipping_addresses_list","get_customer_shipping_addresses_list_with_http_info"])
|
253
253
|
post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
|
254
254
|
end
|
255
255
|
auth_names = []
|
@@ -339,8 +339,8 @@ module CyberSource
|
|
339
339
|
post_body = @api_client.object_to_http_body(patch_customer_shipping_address_request)
|
340
340
|
sdk_tracker = SdkTracker.new
|
341
341
|
post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'PatchCustomerShippingAddressRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
|
342
|
-
|
343
|
-
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig,
|
342
|
+
inbound_mle_status = "false"
|
343
|
+
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["patch_customers_shipping_address","patch_customers_shipping_address_with_http_info"])
|
344
344
|
post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
|
345
345
|
end
|
346
346
|
auth_names = []
|
@@ -421,8 +421,8 @@ module CyberSource
|
|
421
421
|
post_body = @api_client.object_to_http_body(post_customer_shipping_address_request)
|
422
422
|
sdk_tracker = SdkTracker.new
|
423
423
|
post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'PostCustomerShippingAddressRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
|
424
|
-
|
425
|
-
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig,
|
424
|
+
inbound_mle_status = "false"
|
425
|
+
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["post_customer_shipping_address","post_customer_shipping_address_with_http_info"])
|
426
426
|
post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
|
427
427
|
end
|
428
428
|
auth_names = []
|
@@ -76,8 +76,8 @@ module CyberSource
|
|
76
76
|
post_body = @api_client.object_to_http_body(case_management_actions_request)
|
77
77
|
sdk_tracker = SdkTracker.new
|
78
78
|
post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'CaseManagementActionsRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
|
79
|
-
|
80
|
-
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig,
|
79
|
+
inbound_mle_status = "false"
|
80
|
+
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["action_decision_manager_case","action_decision_manager_case_with_http_info"])
|
81
81
|
post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
|
82
82
|
end
|
83
83
|
auth_names = []
|
@@ -155,8 +155,8 @@ module CyberSource
|
|
155
155
|
post_body = @api_client.object_to_http_body(add_negative_list_request)
|
156
156
|
sdk_tracker = SdkTracker.new
|
157
157
|
post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'AddNegativeListRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
|
158
|
-
|
159
|
-
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig,
|
158
|
+
inbound_mle_status = "false"
|
159
|
+
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["add_negative","add_negative_with_http_info"])
|
160
160
|
post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
|
161
161
|
end
|
162
162
|
auth_names = []
|
@@ -234,8 +234,8 @@ module CyberSource
|
|
234
234
|
post_body = @api_client.object_to_http_body(case_management_comments_request)
|
235
235
|
sdk_tracker = SdkTracker.new
|
236
236
|
post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'CaseManagementCommentsRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
|
237
|
-
|
238
|
-
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig,
|
237
|
+
inbound_mle_status = "false"
|
238
|
+
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["comment_decision_manager_case","comment_decision_manager_case_with_http_info"])
|
239
239
|
post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
|
240
240
|
end
|
241
241
|
auth_names = []
|
@@ -307,8 +307,8 @@ module CyberSource
|
|
307
307
|
post_body = @api_client.object_to_http_body(create_bundled_decision_manager_case_request)
|
308
308
|
sdk_tracker = SdkTracker.new
|
309
309
|
post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'CreateBundledDecisionManagerCaseRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
|
310
|
-
|
311
|
-
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig,
|
310
|
+
inbound_mle_status = "false"
|
311
|
+
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["create_bundled_decision_manager_case","create_bundled_decision_manager_case_with_http_info"])
|
312
312
|
post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
|
313
313
|
end
|
314
314
|
auth_names = []
|
@@ -386,8 +386,8 @@ module CyberSource
|
|
386
386
|
post_body = @api_client.object_to_http_body(fraud_marking_action_request)
|
387
387
|
sdk_tracker = SdkTracker.new
|
388
388
|
post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'FraudMarkingActionRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
|
389
|
-
|
390
|
-
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig,
|
389
|
+
inbound_mle_status = "false"
|
390
|
+
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["fraud_update","fraud_update_with_http_info"])
|
391
391
|
post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
|
392
392
|
end
|
393
393
|
auth_names = []
|