cybersource_rest_client 0.0.80 → 0.0.81
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 +17 -7
- data/lib/AuthenticationSDK/core/Authorization.rb +2 -2
- data/lib/AuthenticationSDK/core/MerchantConfig.rb +277 -23
- data/lib/AuthenticationSDK/util/Cache.rb +144 -8
- data/lib/AuthenticationSDK/util/CachedMLEKId.rb +17 -0
- data/lib/AuthenticationSDK/util/CertificateUtility.rb +109 -29
- data/lib/AuthenticationSDK/util/Constants.rb +4 -0
- data/lib/AuthenticationSDK/util/MLEUtility.rb +167 -11
- data/lib/AuthenticationSDK/util/Utility.rb +37 -1
- data/lib/cybersource_rest_client/api/bank_account_validation_api.rb +6 -2
- data/lib/cybersource_rest_client/api/batches_api.rb +24 -8
- data/lib/cybersource_rest_client/api/billing_agreements_api.rb +18 -6
- data/lib/cybersource_rest_client/api/bin_lookup_api.rb +6 -2
- data/lib/cybersource_rest_client/api/capture_api.rb +6 -2
- data/lib/cybersource_rest_client/api/chargeback_details_api.rb +6 -2
- data/lib/cybersource_rest_client/api/chargeback_summaries_api.rb +6 -2
- data/lib/cybersource_rest_client/api/conversion_details_api.rb +6 -2
- data/lib/cybersource_rest_client/api/create_new_webhooks_api.rb +18 -6
- data/lib/cybersource_rest_client/api/credit_api.rb +6 -2
- data/lib/cybersource_rest_client/api/customer_api.rb +24 -8
- data/lib/cybersource_rest_client/api/customer_payment_instrument_api.rb +30 -10
- data/lib/cybersource_rest_client/api/customer_shipping_address_api.rb +30 -10
- data/lib/cybersource_rest_client/api/decision_manager_api.rb +30 -10
- data/lib/cybersource_rest_client/api/device_de_association_api.rb +12 -4
- data/lib/cybersource_rest_client/api/device_search_api.rb +12 -4
- data/lib/cybersource_rest_client/api/download_dtd_api.rb +6 -2
- data/lib/cybersource_rest_client/api/download_xsd_api.rb +6 -2
- data/lib/cybersource_rest_client/api/emv_tag_details_api.rb +12 -4
- data/lib/cybersource_rest_client/api/enrollment_api.rb +104 -0
- data/lib/cybersource_rest_client/api/flex_api_api.rb +6 -2
- data/lib/cybersource_rest_client/api/instructions_api.rb +452 -0
- data/lib/cybersource_rest_client/api/instrument_identifier_api.rb +36 -12
- data/lib/cybersource_rest_client/api/interchange_clearing_level_details_api.rb +6 -2
- data/lib/cybersource_rest_client/api/invoice_settings_api.rb +12 -4
- data/lib/cybersource_rest_client/api/invoices_api.rb +42 -14
- data/lib/cybersource_rest_client/api/manage_webhooks_api.rb +42 -14
- data/lib/cybersource_rest_client/api/merchant_boarding_api.rb +12 -4
- data/lib/cybersource_rest_client/api/merchant_defined_fields_api.rb +24 -8
- data/lib/cybersource_rest_client/api/microform_integration_api.rb +6 -2
- data/lib/cybersource_rest_client/api/net_fundings_api.rb +6 -2
- data/lib/cybersource_rest_client/api/notification_of_changes_api.rb +6 -2
- data/lib/cybersource_rest_client/api/offers_api.rb +12 -4
- data/lib/cybersource_rest_client/api/orders_api.rb +12 -4
- data/lib/cybersource_rest_client/api/payer_authentication_api.rb +18 -6
- data/lib/cybersource_rest_client/api/payment_batch_summaries_api.rb +6 -2
- data/lib/cybersource_rest_client/api/payment_instrument_api.rb +24 -8
- data/lib/cybersource_rest_client/api/payment_links_api.rb +24 -8
- data/lib/cybersource_rest_client/api/payment_tokens_api.rb +6 -2
- data/lib/cybersource_rest_client/api/payments_api.rb +36 -12
- data/lib/cybersource_rest_client/api/payouts_api.rb +6 -2
- data/lib/cybersource_rest_client/api/plans_api.rb +48 -16
- data/lib/cybersource_rest_client/api/purchase_and_refund_details_api.rb +6 -2
- data/lib/cybersource_rest_client/api/push_funds_api.rb +6 -2
- data/lib/cybersource_rest_client/api/refund_api.rb +12 -4
- data/lib/cybersource_rest_client/api/report_definitions_api.rb +12 -4
- data/lib/cybersource_rest_client/api/report_downloads_api.rb +6 -2
- data/lib/cybersource_rest_client/api/report_subscriptions_api.rb +30 -10
- data/lib/cybersource_rest_client/api/reports_api.rb +18 -6
- data/lib/cybersource_rest_client/api/retrieval_details_api.rb +6 -2
- data/lib/cybersource_rest_client/api/retrieval_summaries_api.rb +6 -2
- data/lib/cybersource_rest_client/api/reversal_api.rb +12 -4
- data/lib/cybersource_rest_client/api/search_transactions_api.rb +12 -4
- data/lib/cybersource_rest_client/api/secure_file_share_api.rb +12 -4
- data/lib/cybersource_rest_client/api/subscriptions_api.rb +48 -16
- data/lib/cybersource_rest_client/api/subscriptions_follow_ons_api.rb +12 -4
- data/lib/cybersource_rest_client/api/taxes_api.rb +12 -4
- data/lib/cybersource_rest_client/api/token_api.rb +12 -4
- data/lib/cybersource_rest_client/api/tokenize_api.rb +6 -2
- data/lib/cybersource_rest_client/api/tokenized_card_api.rb +24 -8
- data/lib/cybersource_rest_client/api/transaction_batches_api.rb +24 -8
- data/lib/cybersource_rest_client/api/transaction_details_api.rb +6 -2
- data/lib/cybersource_rest_client/api/transient_token_data_api.rb +12 -4
- data/lib/cybersource_rest_client/api/unified_checkout_capture_context_api.rb +6 -2
- data/lib/cybersource_rest_client/api/user_management_api.rb +6 -2
- data/lib/cybersource_rest_client/api/user_management_search_api.rb +6 -2
- data/lib/cybersource_rest_client/api/verification_api.rb +12 -4
- data/lib/cybersource_rest_client/api/void_api.rb +30 -10
- data/lib/cybersource_rest_client/api_client.rb +20 -3
- data/lib/cybersource_rest_client/models/acpv1instructions_decline_threshold.rb +232 -0
- data/lib/cybersource_rest_client/models/acpv1instructions_mandates.rb +405 -0
- data/lib/cybersource_rest_client/models/acpv1instructions_recurring_payment_information.rb +191 -0
- data/lib/cybersource_rest_client/models/acpv1instructionsinstruction_idconf_processor_info_payment_instrument_verifi_results.rb +213 -0
- data/lib/cybersource_rest_client/models/acpv1instructionsinstruction_idconfirmations_confirmation_data.rb +229 -0
- data/lib/cybersource_rest_client/models/acpv1instructionsinstruction_idconfirmations_merchant_information.rb +258 -0
- data/lib/cybersource_rest_client/models/acpv1instructionsinstruction_idconfirmations_order_information.rb +377 -0
- data/lib/cybersource_rest_client/models/acpv1instructionsinstruction_idconfirmations_order_information_shipping_details.rb +206 -0
- data/lib/cybersource_rest_client/models/acpv1instructionsinstruction_idconfirmations_processor_information.rb +425 -0
- data/lib/cybersource_rest_client/models/acpv1instructionsinstruction_idconfirmations_processor_information_payment_instrument.rb +190 -0
- data/lib/cybersource_rest_client/models/acpv1instructionsinstruction_idcredentials_attachments.rb +258 -0
- data/lib/cybersource_rest_client/models/acpv1instructionsinstruction_idcredentials_client_reference_information.rb +215 -0
- data/lib/cybersource_rest_client/models/acpv1instructionsinstruction_idcredentials_mandate_reference_data.rb +205 -0
- data/lib/cybersource_rest_client/models/acpv1instructionsinstruction_idcredentials_merchant_information.rb +334 -0
- data/lib/cybersource_rest_client/models/acpv1instructionsinstruction_idcredentials_merchant_information_merchant_descriptor.rb +250 -0
- data/lib/cybersource_rest_client/models/acpv1instructionsinstruction_idcredentials_order_information.rb +228 -0
- data/lib/cybersource_rest_client/models/acpv1instructionsinstruction_idcredentials_order_information_amount_detail.rb +354 -0
- data/lib/cybersource_rest_client/models/acpv1instructionsinstruction_idcredentials_order_information_items.rb +367 -0
- data/lib/cybersource_rest_client/models/acpv1instructionsinstruction_idcredentials_order_information_items_additional_info.rb +231 -0
- data/lib/cybersource_rest_client/models/acpv1instructionsinstruction_idcredentials_order_information_items_policies.rb +346 -0
- data/lib/cybersource_rest_client/models/acpv1instructionsinstruction_idcredentials_order_information_line_items.rb +190 -0
- data/lib/cybersource_rest_client/models/acpv1instructionsinstruction_idcredentials_order_information_ship_to.rb +686 -0
- data/lib/cybersource_rest_client/models/acpv1instructionsinstruction_idcredentials_payment_options.rb +217 -0
- data/lib/cybersource_rest_client/models/acpv1instructionsinstruction_idcredentials_transaction_data.rb +348 -0
- data/lib/cybersource_rest_client/models/acpv1tokens_assurance_data.rb +313 -0
- data/lib/cybersource_rest_client/models/acpv1tokens_authenticated_identities.rb +237 -0
- data/lib/cybersource_rest_client/models/acpv1tokens_authentication_context.rb +191 -0
- data/lib/cybersource_rest_client/models/acpv1tokens_bill_to.rb +400 -0
- data/lib/cybersource_rest_client/models/acpv1tokens_buyer_information.rb +229 -0
- data/lib/cybersource_rest_client/models/acpv1tokens_buyer_information_personal_identification.rb +212 -0
- data/lib/cybersource_rest_client/models/acpv1tokens_consent_data.rb +297 -0
- data/lib/cybersource_rest_client/models/acpv1tokens_consumer_identity.rb +268 -0
- data/lib/cybersource_rest_client/models/acpv1tokens_device_information.rb +378 -0
- data/lib/cybersource_rest_client/models/acpv1tokens_device_information_device_data.rb +302 -0
- data/lib/cybersource_rest_client/models/acpv1tokens_enrollment_reference_data.rb +207 -0
- data/lib/cybersource_rest_client/models/acpv1tokens_payment_information.rb +215 -0
- data/lib/cybersource_rest_client/models/acpv1tokens_payment_information_customer.rb +197 -0
- data/lib/cybersource_rest_client/models/acpv1tokens_payment_information_instrument_identifier.rb +206 -0
- data/lib/cybersource_rest_client/models/acpv1tokens_payment_information_payment_instrument.rb +197 -0
- data/lib/cybersource_rest_client/models/agentic_cancel_purchase_intent_request.rb +257 -0
- data/lib/cybersource_rest_client/models/agentic_card_enrollment_bad_request_response400.rb +189 -0
- data/lib/cybersource_rest_client/models/agentic_card_enrollment_bad_request_response400_error.rb +238 -0
- data/lib/cybersource_rest_client/models/agentic_card_enrollment_bad_request_response400_error_detail.rb +224 -0
- data/lib/cybersource_rest_client/models/agentic_card_enrollment_request.rb +325 -0
- data/lib/cybersource_rest_client/models/agentic_card_enrollment_response200.rb +206 -0
- data/lib/cybersource_rest_client/models/agentic_card_enrollment_response202.rb +219 -0
- data/lib/cybersource_rest_client/models/agentic_confirm_transaction_events_request.rb +247 -0
- data/lib/cybersource_rest_client/models/agentic_confirm_transaction_events_response202.rb +195 -0
- data/lib/cybersource_rest_client/models/agentic_create_purchase_intent_request.rb +327 -0
- data/lib/cybersource_rest_client/models/agentic_create_purchase_intent_response200.rb +222 -0
- data/lib/cybersource_rest_client/models/agentic_pending_purchase_intent_response202.rb +241 -0
- data/lib/cybersource_rest_client/models/agentic_retrieve_payment_credentials_request.rb +247 -0
- data/lib/cybersource_rest_client/models/agentic_retrieve_payment_credentials_response200.rb +200 -0
- data/lib/cybersource_rest_client/models/agentic_retrieve_payment_credentials_response200_transaction_response_complete.rb +244 -0
- data/lib/cybersource_rest_client/models/agentic_retrieve_payment_credentials_response200_transaction_response_with_pending_events.rb +235 -0
- data/lib/cybersource_rest_client/models/agentic_update_purchase_intent_request.rb +315 -0
- data/lib/cybersource_rest_client/models/boardingv1registrations_organization_information_business_information.rb +36 -1
- data/lib/cybersource_rest_client/models/boardingv1registrations_organization_information_business_information_localized_names.rb +254 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline_ancillary_information.rb +22 -5
- data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline_ancillary_information_service.rb +39 -5
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_travel_information.rb +246 -0
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_travel_information_transit.rb +189 -0
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_travel_information_transit_airline.rb +889 -0
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_travel_information_transit_airline_ancillary_information.rb +259 -0
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_travel_information_transit_airline_ancillary_information_service.rb +213 -0
- data/lib/cybersource_rest_client/models/refund_capture_request.rb +1 -1
- data/lib/cybersource_rest_client/models/refund_payment_request.rb +1 -1
- data/lib/cybersource_rest_client/models/upv1capturecontexts_data.rb +4 -2
- data/lib/cybersource_rest_client/models/upv1capturecontexts_data_merchant_defined_information.rb +3 -2
- data/lib/cybersource_rest_client/utilities/jwe_utility.rb +1 -1
- data/lib/cybersource_rest_client.rb +64 -0
- metadata +68 -3
- /data/lib/AuthenticationSDK/util/{JWEUtility.rb → AuthJWEUtility.rb} +0 -0
|
@@ -76,7 +76,7 @@ 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
|
-
inbound_mle_status = "false"
|
|
79
|
+
inbound_mle_status = "false"
|
|
80
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
|
begin
|
|
82
82
|
post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
|
|
@@ -84,6 +84,9 @@ module CyberSource
|
|
|
84
84
|
raise
|
|
85
85
|
end
|
|
86
86
|
end
|
|
87
|
+
|
|
88
|
+
is_response_mle_for_api = MLEUtility.check_is_response_mle_for_api(@api_client.merchantconfig, ["action_decision_manager_case","action_decision_manager_case_with_http_info"])
|
|
89
|
+
|
|
87
90
|
auth_names = []
|
|
88
91
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
89
92
|
:header_params => header_params,
|
|
@@ -91,7 +94,8 @@ module CyberSource
|
|
|
91
94
|
:form_params => form_params,
|
|
92
95
|
:body => post_body,
|
|
93
96
|
:auth_names => auth_names,
|
|
94
|
-
:return_type => 'InlineResponse2002'
|
|
97
|
+
:return_type => 'InlineResponse2002',
|
|
98
|
+
:isResponseMLEForApi => is_response_mle_for_api)
|
|
95
99
|
if @api_client.config.debugging
|
|
96
100
|
begin
|
|
97
101
|
raise
|
|
@@ -159,7 +163,7 @@ module CyberSource
|
|
|
159
163
|
post_body = @api_client.object_to_http_body(add_negative_list_request)
|
|
160
164
|
sdk_tracker = SdkTracker.new
|
|
161
165
|
post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'AddNegativeListRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
|
|
162
|
-
inbound_mle_status = "false"
|
|
166
|
+
inbound_mle_status = "false"
|
|
163
167
|
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["add_negative","add_negative_with_http_info"])
|
|
164
168
|
begin
|
|
165
169
|
post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
|
|
@@ -167,6 +171,9 @@ module CyberSource
|
|
|
167
171
|
raise
|
|
168
172
|
end
|
|
169
173
|
end
|
|
174
|
+
|
|
175
|
+
is_response_mle_for_api = MLEUtility.check_is_response_mle_for_api(@api_client.merchantconfig, ["add_negative","add_negative_with_http_info"])
|
|
176
|
+
|
|
170
177
|
auth_names = []
|
|
171
178
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
172
179
|
:header_params => header_params,
|
|
@@ -174,7 +181,8 @@ module CyberSource
|
|
|
174
181
|
:form_params => form_params,
|
|
175
182
|
:body => post_body,
|
|
176
183
|
:auth_names => auth_names,
|
|
177
|
-
:return_type => 'RiskV1UpdatePost201Response'
|
|
184
|
+
:return_type => 'RiskV1UpdatePost201Response',
|
|
185
|
+
:isResponseMLEForApi => is_response_mle_for_api)
|
|
178
186
|
if @api_client.config.debugging
|
|
179
187
|
begin
|
|
180
188
|
raise
|
|
@@ -242,7 +250,7 @@ module CyberSource
|
|
|
242
250
|
post_body = @api_client.object_to_http_body(case_management_comments_request)
|
|
243
251
|
sdk_tracker = SdkTracker.new
|
|
244
252
|
post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'CaseManagementCommentsRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
|
|
245
|
-
inbound_mle_status = "false"
|
|
253
|
+
inbound_mle_status = "false"
|
|
246
254
|
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["comment_decision_manager_case","comment_decision_manager_case_with_http_info"])
|
|
247
255
|
begin
|
|
248
256
|
post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
|
|
@@ -250,6 +258,9 @@ module CyberSource
|
|
|
250
258
|
raise
|
|
251
259
|
end
|
|
252
260
|
end
|
|
261
|
+
|
|
262
|
+
is_response_mle_for_api = MLEUtility.check_is_response_mle_for_api(@api_client.merchantconfig, ["comment_decision_manager_case","comment_decision_manager_case_with_http_info"])
|
|
263
|
+
|
|
253
264
|
auth_names = []
|
|
254
265
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
255
266
|
:header_params => header_params,
|
|
@@ -257,7 +268,8 @@ module CyberSource
|
|
|
257
268
|
:form_params => form_params,
|
|
258
269
|
:body => post_body,
|
|
259
270
|
:auth_names => auth_names,
|
|
260
|
-
:return_type => 'InlineResponse2011'
|
|
271
|
+
:return_type => 'InlineResponse2011',
|
|
272
|
+
:isResponseMLEForApi => is_response_mle_for_api)
|
|
261
273
|
if @api_client.config.debugging
|
|
262
274
|
begin
|
|
263
275
|
raise
|
|
@@ -319,7 +331,7 @@ module CyberSource
|
|
|
319
331
|
post_body = @api_client.object_to_http_body(create_bundled_decision_manager_case_request)
|
|
320
332
|
sdk_tracker = SdkTracker.new
|
|
321
333
|
post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'CreateBundledDecisionManagerCaseRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
|
|
322
|
-
inbound_mle_status = "false"
|
|
334
|
+
inbound_mle_status = "false"
|
|
323
335
|
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"])
|
|
324
336
|
begin
|
|
325
337
|
post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
|
|
@@ -327,6 +339,9 @@ module CyberSource
|
|
|
327
339
|
raise
|
|
328
340
|
end
|
|
329
341
|
end
|
|
342
|
+
|
|
343
|
+
is_response_mle_for_api = MLEUtility.check_is_response_mle_for_api(@api_client.merchantconfig, ["create_bundled_decision_manager_case","create_bundled_decision_manager_case_with_http_info"])
|
|
344
|
+
|
|
330
345
|
auth_names = []
|
|
331
346
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
332
347
|
:header_params => header_params,
|
|
@@ -334,7 +349,8 @@ module CyberSource
|
|
|
334
349
|
:form_params => form_params,
|
|
335
350
|
:body => post_body,
|
|
336
351
|
:auth_names => auth_names,
|
|
337
|
-
:return_type => 'RiskV1DecisionsPost201Response'
|
|
352
|
+
:return_type => 'RiskV1DecisionsPost201Response',
|
|
353
|
+
:isResponseMLEForApi => is_response_mle_for_api)
|
|
338
354
|
if @api_client.config.debugging
|
|
339
355
|
begin
|
|
340
356
|
raise
|
|
@@ -402,7 +418,7 @@ module CyberSource
|
|
|
402
418
|
post_body = @api_client.object_to_http_body(fraud_marking_action_request)
|
|
403
419
|
sdk_tracker = SdkTracker.new
|
|
404
420
|
post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'FraudMarkingActionRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
|
|
405
|
-
inbound_mle_status = "false"
|
|
421
|
+
inbound_mle_status = "false"
|
|
406
422
|
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["fraud_update","fraud_update_with_http_info"])
|
|
407
423
|
begin
|
|
408
424
|
post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
|
|
@@ -410,6 +426,9 @@ module CyberSource
|
|
|
410
426
|
raise
|
|
411
427
|
end
|
|
412
428
|
end
|
|
429
|
+
|
|
430
|
+
is_response_mle_for_api = MLEUtility.check_is_response_mle_for_api(@api_client.merchantconfig, ["fraud_update","fraud_update_with_http_info"])
|
|
431
|
+
|
|
413
432
|
auth_names = []
|
|
414
433
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
415
434
|
:header_params => header_params,
|
|
@@ -417,7 +436,8 @@ module CyberSource
|
|
|
417
436
|
:form_params => form_params,
|
|
418
437
|
:body => post_body,
|
|
419
438
|
:auth_names => auth_names,
|
|
420
|
-
:return_type => 'RiskV1UpdatePost201Response'
|
|
439
|
+
:return_type => 'RiskV1UpdatePost201Response',
|
|
440
|
+
:isResponseMLEForApi => is_response_mle_for_api)
|
|
421
441
|
if @api_client.config.debugging
|
|
422
442
|
begin
|
|
423
443
|
raise
|
|
@@ -70,7 +70,7 @@ module CyberSource
|
|
|
70
70
|
post_body = @api_client.object_to_http_body(de_association_request_body)
|
|
71
71
|
sdk_tracker = SdkTracker.new
|
|
72
72
|
post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'DeAssociationRequestBody', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
|
|
73
|
-
inbound_mle_status = "false"
|
|
73
|
+
inbound_mle_status = "false"
|
|
74
74
|
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["delete_terminal_association","delete_terminal_association_with_http_info"])
|
|
75
75
|
begin
|
|
76
76
|
post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
|
|
@@ -78,13 +78,17 @@ module CyberSource
|
|
|
78
78
|
raise
|
|
79
79
|
end
|
|
80
80
|
end
|
|
81
|
+
|
|
82
|
+
is_response_mle_for_api = MLEUtility.check_is_response_mle_for_api(@api_client.merchantconfig, ["delete_terminal_association","delete_terminal_association_with_http_info"])
|
|
83
|
+
|
|
81
84
|
auth_names = []
|
|
82
85
|
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
|
|
83
86
|
:header_params => header_params,
|
|
84
87
|
:query_params => query_params,
|
|
85
88
|
:form_params => form_params,
|
|
86
89
|
:body => post_body,
|
|
87
|
-
:auth_names => auth_names
|
|
90
|
+
:auth_names => auth_names,
|
|
91
|
+
:isResponseMLEForApi => is_response_mle_for_api)
|
|
88
92
|
if @api_client.config.debugging
|
|
89
93
|
begin
|
|
90
94
|
raise
|
|
@@ -146,7 +150,7 @@ module CyberSource
|
|
|
146
150
|
post_body = @api_client.object_to_http_body(device_de_associate_v3_request)
|
|
147
151
|
sdk_tracker = SdkTracker.new
|
|
148
152
|
post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'Array<DeviceDeAssociateV3Request>', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
|
|
149
|
-
inbound_mle_status = "false"
|
|
153
|
+
inbound_mle_status = "false"
|
|
150
154
|
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["post_de_associate_v3_terminal","post_de_associate_v3_terminal_with_http_info"])
|
|
151
155
|
begin
|
|
152
156
|
post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
|
|
@@ -154,6 +158,9 @@ module CyberSource
|
|
|
154
158
|
raise
|
|
155
159
|
end
|
|
156
160
|
end
|
|
161
|
+
|
|
162
|
+
is_response_mle_for_api = MLEUtility.check_is_response_mle_for_api(@api_client.merchantconfig, ["post_de_associate_v3_terminal","post_de_associate_v3_terminal_with_http_info"])
|
|
163
|
+
|
|
157
164
|
auth_names = []
|
|
158
165
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
159
166
|
:header_params => header_params,
|
|
@@ -161,7 +168,8 @@ module CyberSource
|
|
|
161
168
|
:form_params => form_params,
|
|
162
169
|
:body => post_body,
|
|
163
170
|
:auth_names => auth_names,
|
|
164
|
-
:return_type => 'Array<InlineResponse2009>'
|
|
171
|
+
:return_type => 'Array<InlineResponse2009>',
|
|
172
|
+
:isResponseMLEForApi => is_response_mle_for_api)
|
|
165
173
|
if @api_client.config.debugging
|
|
166
174
|
begin
|
|
167
175
|
raise
|
|
@@ -70,7 +70,7 @@ module CyberSource
|
|
|
70
70
|
post_body = @api_client.object_to_http_body(post_device_search_request)
|
|
71
71
|
sdk_tracker = SdkTracker.new
|
|
72
72
|
post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'PostDeviceSearchRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
|
|
73
|
-
inbound_mle_status = "false"
|
|
73
|
+
inbound_mle_status = "false"
|
|
74
74
|
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["post_search_query","post_search_query_with_http_info"])
|
|
75
75
|
begin
|
|
76
76
|
post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
|
|
@@ -78,6 +78,9 @@ module CyberSource
|
|
|
78
78
|
raise
|
|
79
79
|
end
|
|
80
80
|
end
|
|
81
|
+
|
|
82
|
+
is_response_mle_for_api = MLEUtility.check_is_response_mle_for_api(@api_client.merchantconfig, ["post_search_query","post_search_query_with_http_info"])
|
|
83
|
+
|
|
81
84
|
auth_names = []
|
|
82
85
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
83
86
|
:header_params => header_params,
|
|
@@ -85,7 +88,8 @@ module CyberSource
|
|
|
85
88
|
:form_params => form_params,
|
|
86
89
|
:body => post_body,
|
|
87
90
|
:auth_names => auth_names,
|
|
88
|
-
:return_type => 'InlineResponse2008'
|
|
91
|
+
:return_type => 'InlineResponse2008',
|
|
92
|
+
:isResponseMLEForApi => is_response_mle_for_api)
|
|
89
93
|
if @api_client.config.debugging
|
|
90
94
|
begin
|
|
91
95
|
raise
|
|
@@ -147,7 +151,7 @@ module CyberSource
|
|
|
147
151
|
post_body = @api_client.object_to_http_body(post_device_search_request_v3)
|
|
148
152
|
sdk_tracker = SdkTracker.new
|
|
149
153
|
post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'PostDeviceSearchRequestV3', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
|
|
150
|
-
inbound_mle_status = "false"
|
|
154
|
+
inbound_mle_status = "false"
|
|
151
155
|
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["post_search_query_v3","post_search_query_v3_with_http_info"])
|
|
152
156
|
begin
|
|
153
157
|
post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
|
|
@@ -155,6 +159,9 @@ module CyberSource
|
|
|
155
159
|
raise
|
|
156
160
|
end
|
|
157
161
|
end
|
|
162
|
+
|
|
163
|
+
is_response_mle_for_api = MLEUtility.check_is_response_mle_for_api(@api_client.merchantconfig, ["post_search_query_v3","post_search_query_v3_with_http_info"])
|
|
164
|
+
|
|
158
165
|
auth_names = []
|
|
159
166
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
160
167
|
:header_params => header_params,
|
|
@@ -162,7 +169,8 @@ module CyberSource
|
|
|
162
169
|
:form_params => form_params,
|
|
163
170
|
:body => post_body,
|
|
164
171
|
:auth_names => auth_names,
|
|
165
|
-
:return_type => 'InlineResponse20010'
|
|
172
|
+
:return_type => 'InlineResponse20010',
|
|
173
|
+
:isResponseMLEForApi => is_response_mle_for_api)
|
|
166
174
|
if @api_client.config.debugging
|
|
167
175
|
begin
|
|
168
176
|
raise
|
|
@@ -72,7 +72,7 @@ module CyberSource
|
|
|
72
72
|
else
|
|
73
73
|
post_body = nil
|
|
74
74
|
end
|
|
75
|
-
inbound_mle_status = "false"
|
|
75
|
+
inbound_mle_status = "false"
|
|
76
76
|
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_dtdv2","get_dtdv2_with_http_info"])
|
|
77
77
|
begin
|
|
78
78
|
post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
|
|
@@ -80,13 +80,17 @@ module CyberSource
|
|
|
80
80
|
raise
|
|
81
81
|
end
|
|
82
82
|
end
|
|
83
|
+
|
|
84
|
+
is_response_mle_for_api = MLEUtility.check_is_response_mle_for_api(@api_client.merchantconfig, ["get_dtdv2","get_dtdv2_with_http_info"])
|
|
85
|
+
|
|
83
86
|
auth_names = []
|
|
84
87
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
85
88
|
:header_params => header_params,
|
|
86
89
|
:query_params => query_params,
|
|
87
90
|
:form_params => form_params,
|
|
88
91
|
:body => post_body,
|
|
89
|
-
:auth_names => auth_names
|
|
92
|
+
:auth_names => auth_names,
|
|
93
|
+
:isResponseMLEForApi => is_response_mle_for_api)
|
|
90
94
|
if @api_client.config.debugging
|
|
91
95
|
begin
|
|
92
96
|
raise
|
|
@@ -72,7 +72,7 @@ module CyberSource
|
|
|
72
72
|
else
|
|
73
73
|
post_body = nil
|
|
74
74
|
end
|
|
75
|
-
inbound_mle_status = "false"
|
|
75
|
+
inbound_mle_status = "false"
|
|
76
76
|
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_xsdv2","get_xsdv2_with_http_info"])
|
|
77
77
|
begin
|
|
78
78
|
post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
|
|
@@ -80,13 +80,17 @@ module CyberSource
|
|
|
80
80
|
raise
|
|
81
81
|
end
|
|
82
82
|
end
|
|
83
|
+
|
|
84
|
+
is_response_mle_for_api = MLEUtility.check_is_response_mle_for_api(@api_client.merchantconfig, ["get_xsdv2","get_xsdv2_with_http_info"])
|
|
85
|
+
|
|
83
86
|
auth_names = []
|
|
84
87
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
85
88
|
:header_params => header_params,
|
|
86
89
|
:query_params => query_params,
|
|
87
90
|
:form_params => form_params,
|
|
88
91
|
:body => post_body,
|
|
89
|
-
:auth_names => auth_names
|
|
92
|
+
:auth_names => auth_names,
|
|
93
|
+
:isResponseMLEForApi => is_response_mle_for_api)
|
|
90
94
|
if @api_client.config.debugging
|
|
91
95
|
begin
|
|
92
96
|
raise
|
|
@@ -66,7 +66,7 @@ module CyberSource
|
|
|
66
66
|
else
|
|
67
67
|
post_body = nil
|
|
68
68
|
end
|
|
69
|
-
inbound_mle_status = "false"
|
|
69
|
+
inbound_mle_status = "false"
|
|
70
70
|
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_emv_tags","get_emv_tags_with_http_info"])
|
|
71
71
|
begin
|
|
72
72
|
post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
|
|
@@ -74,6 +74,9 @@ module CyberSource
|
|
|
74
74
|
raise
|
|
75
75
|
end
|
|
76
76
|
end
|
|
77
|
+
|
|
78
|
+
is_response_mle_for_api = MLEUtility.check_is_response_mle_for_api(@api_client.merchantconfig, ["get_emv_tags","get_emv_tags_with_http_info"])
|
|
79
|
+
|
|
77
80
|
auth_names = []
|
|
78
81
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
79
82
|
:header_params => header_params,
|
|
@@ -81,7 +84,8 @@ module CyberSource
|
|
|
81
84
|
:form_params => form_params,
|
|
82
85
|
:body => post_body,
|
|
83
86
|
:auth_names => auth_names,
|
|
84
|
-
:return_type => 'TssV2GetEmvTags200Response'
|
|
87
|
+
:return_type => 'TssV2GetEmvTags200Response',
|
|
88
|
+
:isResponseMLEForApi => is_response_mle_for_api)
|
|
85
89
|
if @api_client.config.debugging
|
|
86
90
|
begin
|
|
87
91
|
raise
|
|
@@ -143,7 +147,7 @@ module CyberSource
|
|
|
143
147
|
post_body = @api_client.object_to_http_body(body)
|
|
144
148
|
sdk_tracker = SdkTracker.new
|
|
145
149
|
post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'Body', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
|
|
146
|
-
inbound_mle_status = "false"
|
|
150
|
+
inbound_mle_status = "false"
|
|
147
151
|
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["parse_emv_tags","parse_emv_tags_with_http_info"])
|
|
148
152
|
begin
|
|
149
153
|
post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
|
|
@@ -151,6 +155,9 @@ module CyberSource
|
|
|
151
155
|
raise
|
|
152
156
|
end
|
|
153
157
|
end
|
|
158
|
+
|
|
159
|
+
is_response_mle_for_api = MLEUtility.check_is_response_mle_for_api(@api_client.merchantconfig, ["parse_emv_tags","parse_emv_tags_with_http_info"])
|
|
160
|
+
|
|
154
161
|
auth_names = []
|
|
155
162
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
156
163
|
:header_params => header_params,
|
|
@@ -158,7 +165,8 @@ module CyberSource
|
|
|
158
165
|
:form_params => form_params,
|
|
159
166
|
:body => post_body,
|
|
160
167
|
:auth_names => auth_names,
|
|
161
|
-
:return_type => 'TssV2PostEmvTags200Response'
|
|
168
|
+
:return_type => 'TssV2PostEmvTags200Response',
|
|
169
|
+
:isResponseMLEForApi => is_response_mle_for_api)
|
|
162
170
|
if @api_client.config.debugging
|
|
163
171
|
begin
|
|
164
172
|
raise
|
|
@@ -0,0 +1,104 @@
|
|
|
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 'uri'
|
|
13
|
+
require 'AuthenticationSDK/util/MLEUtility'
|
|
14
|
+
module CyberSource
|
|
15
|
+
class EnrollmentApi
|
|
16
|
+
attr_accessor :api_client
|
|
17
|
+
|
|
18
|
+
def initialize(api_client = ApiClient.default, config)
|
|
19
|
+
@api_client = api_client
|
|
20
|
+
@api_client.set_configuration(config)
|
|
21
|
+
end
|
|
22
|
+
# Enroll a card
|
|
23
|
+
# Enroll a card for tokenization during the customer's account registration or when the customer starts a new purchase intent.
|
|
24
|
+
#
|
|
25
|
+
# @param agentic_card_enrollment_request
|
|
26
|
+
# @param [Hash] opts the optional parameters
|
|
27
|
+
# @return [AgenticCardEnrollmentResponse200]
|
|
28
|
+
#
|
|
29
|
+
def enroll_card(agentic_card_enrollment_request, opts = {})
|
|
30
|
+
data, status_code, headers = enroll_card_with_http_info(agentic_card_enrollment_request, opts)
|
|
31
|
+
return data, status_code, headers
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# Enroll a card
|
|
35
|
+
# Enroll a card for tokenization during the customer's account registration or when the customer starts a new purchase intent.
|
|
36
|
+
# @param agentic_card_enrollment_request
|
|
37
|
+
# @param [Hash] opts the optional parameters
|
|
38
|
+
# @return [Array<(AgenticCardEnrollmentResponse200, Fixnum, Hash)>] AgenticCardEnrollmentResponse200 data, response status code and response headers
|
|
39
|
+
def enroll_card_with_http_info(agentic_card_enrollment_request, opts = {})
|
|
40
|
+
|
|
41
|
+
if @api_client.config.debugging
|
|
42
|
+
begin
|
|
43
|
+
raise
|
|
44
|
+
@api_client.config.logger.debug 'Calling API: EnrollmentApi.enroll_card ...'
|
|
45
|
+
rescue
|
|
46
|
+
puts 'Cannot write to log'
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
# verify the required parameter 'agentic_card_enrollment_request' is set
|
|
50
|
+
if @api_client.config.client_side_validation && agentic_card_enrollment_request.nil?
|
|
51
|
+
fail ArgumentError, "Missing the required parameter 'agentic_card_enrollment_request' when calling EnrollmentApi.enroll_card"
|
|
52
|
+
end
|
|
53
|
+
# resource path
|
|
54
|
+
local_var_path = 'acp/v1/tokens'
|
|
55
|
+
|
|
56
|
+
# query parameters
|
|
57
|
+
query_params = {}
|
|
58
|
+
|
|
59
|
+
# header parameters
|
|
60
|
+
header_params = {}
|
|
61
|
+
# HTTP header 'Accept' (if needed)
|
|
62
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/hal+json;charset=utf-8'])
|
|
63
|
+
# HTTP header 'Content-Type'
|
|
64
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
|
|
65
|
+
|
|
66
|
+
# form parameters
|
|
67
|
+
form_params = {}
|
|
68
|
+
|
|
69
|
+
# http body (model)
|
|
70
|
+
post_body = @api_client.object_to_http_body(agentic_card_enrollment_request)
|
|
71
|
+
sdk_tracker = SdkTracker.new
|
|
72
|
+
post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'AgenticCardEnrollmentRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
|
|
73
|
+
inbound_mle_status = "mandatory"
|
|
74
|
+
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["enroll_card","enroll_card_with_http_info"])
|
|
75
|
+
begin
|
|
76
|
+
post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
|
|
77
|
+
rescue
|
|
78
|
+
raise
|
|
79
|
+
end
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
is_response_mle_for_api = MLEUtility.check_is_response_mle_for_api(@api_client.merchantconfig, ["enroll_card","enroll_card_with_http_info"])
|
|
83
|
+
|
|
84
|
+
auth_names = []
|
|
85
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
86
|
+
:header_params => header_params,
|
|
87
|
+
:query_params => query_params,
|
|
88
|
+
:form_params => form_params,
|
|
89
|
+
:body => post_body,
|
|
90
|
+
:auth_names => auth_names,
|
|
91
|
+
:return_type => 'AgenticCardEnrollmentResponse200',
|
|
92
|
+
:isResponseMLEForApi => is_response_mle_for_api)
|
|
93
|
+
if @api_client.config.debugging
|
|
94
|
+
begin
|
|
95
|
+
raise
|
|
96
|
+
@api_client.config.logger.debug "API called: EnrollmentApi#enroll_card\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
97
|
+
rescue
|
|
98
|
+
puts 'Cannot write to log'
|
|
99
|
+
end
|
|
100
|
+
end
|
|
101
|
+
return data, status_code, headers
|
|
102
|
+
end
|
|
103
|
+
end
|
|
104
|
+
end
|
|
@@ -70,7 +70,7 @@ module CyberSource
|
|
|
70
70
|
post_body = @api_client.object_to_http_body(generate_flex_api_capture_context_request)
|
|
71
71
|
sdk_tracker = SdkTracker.new
|
|
72
72
|
post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'GenerateFlexAPICaptureContextRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
|
|
73
|
-
inbound_mle_status = "false"
|
|
73
|
+
inbound_mle_status = "false"
|
|
74
74
|
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["generate_flex_api_capture_context","generate_flex_api_capture_context_with_http_info"])
|
|
75
75
|
begin
|
|
76
76
|
post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
|
|
@@ -78,6 +78,9 @@ module CyberSource
|
|
|
78
78
|
raise
|
|
79
79
|
end
|
|
80
80
|
end
|
|
81
|
+
|
|
82
|
+
is_response_mle_for_api = MLEUtility.check_is_response_mle_for_api(@api_client.merchantconfig, ["generate_flex_api_capture_context","generate_flex_api_capture_context_with_http_info"])
|
|
83
|
+
|
|
81
84
|
auth_names = []
|
|
82
85
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
83
86
|
:header_params => header_params,
|
|
@@ -85,7 +88,8 @@ module CyberSource
|
|
|
85
88
|
:form_params => form_params,
|
|
86
89
|
:body => post_body,
|
|
87
90
|
:auth_names => auth_names,
|
|
88
|
-
:return_type => 'String'
|
|
91
|
+
:return_type => 'String',
|
|
92
|
+
:isResponseMLEForApi => is_response_mle_for_api)
|
|
89
93
|
if @api_client.config.debugging
|
|
90
94
|
begin
|
|
91
95
|
raise
|