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
|
@@ -0,0 +1,452 @@
|
|
|
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 InstructionsApi
|
|
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
|
+
# Cancel a purchase intent
|
|
23
|
+
# Cancels an existing purchase intent identified by the transaction ID.
|
|
24
|
+
#
|
|
25
|
+
# @param instruction_id
|
|
26
|
+
# @param agentic_cancel_purchase_intent_request Unique identifier for the purchase intent instruction.
|
|
27
|
+
# @param [Hash] opts the optional parameters
|
|
28
|
+
# @return [AgenticCreatePurchaseIntentResponse200]
|
|
29
|
+
#
|
|
30
|
+
def cancel_purchase_intent(instruction_id, agentic_cancel_purchase_intent_request, opts = {})
|
|
31
|
+
data, status_code, headers = cancel_purchase_intent_with_http_info(instruction_id, agentic_cancel_purchase_intent_request, opts)
|
|
32
|
+
return data, status_code, headers
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# Cancel a purchase intent
|
|
36
|
+
# Cancels an existing purchase intent identified by the transaction ID.
|
|
37
|
+
# @param instruction_id
|
|
38
|
+
# @param agentic_cancel_purchase_intent_request Unique identifier for the purchase intent instruction.
|
|
39
|
+
# @param [Hash] opts the optional parameters
|
|
40
|
+
# @return [Array<(AgenticCreatePurchaseIntentResponse200, Fixnum, Hash)>] AgenticCreatePurchaseIntentResponse200 data, response status code and response headers
|
|
41
|
+
def cancel_purchase_intent_with_http_info(instruction_id, agentic_cancel_purchase_intent_request, opts = {})
|
|
42
|
+
|
|
43
|
+
if @api_client.config.debugging
|
|
44
|
+
begin
|
|
45
|
+
raise
|
|
46
|
+
@api_client.config.logger.debug 'Calling API: InstructionsApi.cancel_purchase_intent ...'
|
|
47
|
+
rescue
|
|
48
|
+
puts 'Cannot write to log'
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
# verify the required parameter 'instruction_id' is set
|
|
52
|
+
if @api_client.config.client_side_validation && instruction_id.nil?
|
|
53
|
+
fail ArgumentError, "Missing the required parameter 'instruction_id' when calling InstructionsApi.cancel_purchase_intent"
|
|
54
|
+
end
|
|
55
|
+
# verify the required parameter 'agentic_cancel_purchase_intent_request' is set
|
|
56
|
+
if @api_client.config.client_side_validation && agentic_cancel_purchase_intent_request.nil?
|
|
57
|
+
fail ArgumentError, "Missing the required parameter 'agentic_cancel_purchase_intent_request' when calling InstructionsApi.cancel_purchase_intent"
|
|
58
|
+
end
|
|
59
|
+
# resource path
|
|
60
|
+
local_var_path = 'acp/v1/instructions/{instructionId}/cancel'.sub('{' + 'instructionId' + '}', instruction_id.to_s)
|
|
61
|
+
|
|
62
|
+
# query parameters
|
|
63
|
+
query_params = {}
|
|
64
|
+
|
|
65
|
+
# header parameters
|
|
66
|
+
header_params = {}
|
|
67
|
+
# HTTP header 'Accept' (if needed)
|
|
68
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/hal+json;charset=utf-8'])
|
|
69
|
+
# HTTP header 'Content-Type'
|
|
70
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
|
|
71
|
+
|
|
72
|
+
# form parameters
|
|
73
|
+
form_params = {}
|
|
74
|
+
|
|
75
|
+
# http body (model)
|
|
76
|
+
post_body = @api_client.object_to_http_body(agentic_cancel_purchase_intent_request)
|
|
77
|
+
sdk_tracker = SdkTracker.new
|
|
78
|
+
post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'AgenticCancelPurchaseIntentRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
|
|
79
|
+
inbound_mle_status = "mandatory"
|
|
80
|
+
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["cancel_purchase_intent","cancel_purchase_intent_with_http_info"])
|
|
81
|
+
begin
|
|
82
|
+
post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
|
|
83
|
+
rescue
|
|
84
|
+
raise
|
|
85
|
+
end
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
is_response_mle_for_api = MLEUtility.check_is_response_mle_for_api(@api_client.merchantconfig, ["cancel_purchase_intent","cancel_purchase_intent_with_http_info"])
|
|
89
|
+
|
|
90
|
+
auth_names = []
|
|
91
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
|
92
|
+
:header_params => header_params,
|
|
93
|
+
:query_params => query_params,
|
|
94
|
+
:form_params => form_params,
|
|
95
|
+
:body => post_body,
|
|
96
|
+
:auth_names => auth_names,
|
|
97
|
+
:return_type => 'AgenticCreatePurchaseIntentResponse200',
|
|
98
|
+
:isResponseMLEForApi => is_response_mle_for_api)
|
|
99
|
+
if @api_client.config.debugging
|
|
100
|
+
begin
|
|
101
|
+
raise
|
|
102
|
+
@api_client.config.logger.debug "API called: InstructionsApi#cancel_purchase_intent\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
103
|
+
rescue
|
|
104
|
+
puts 'Cannot write to log'
|
|
105
|
+
end
|
|
106
|
+
end
|
|
107
|
+
return data, status_code, headers
|
|
108
|
+
end
|
|
109
|
+
# Confirm transaction events
|
|
110
|
+
# Agents send the confirm transaction events to notify the payment processing is done
|
|
111
|
+
#
|
|
112
|
+
# @param instruction_id Unique identifier for the purchase intent instruction.
|
|
113
|
+
# @param agentic_confirm_transaction_events_request
|
|
114
|
+
# @param [Hash] opts the optional parameters
|
|
115
|
+
# @return [AgenticConfirmTransactionEventsResponse202]
|
|
116
|
+
#
|
|
117
|
+
def confirm_transaction_events(instruction_id, agentic_confirm_transaction_events_request, opts = {})
|
|
118
|
+
data, status_code, headers = confirm_transaction_events_with_http_info(instruction_id, agentic_confirm_transaction_events_request, opts)
|
|
119
|
+
return data, status_code, headers
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
# Confirm transaction events
|
|
123
|
+
# Agents send the confirm transaction events to notify the payment processing is done
|
|
124
|
+
# @param instruction_id Unique identifier for the purchase intent instruction.
|
|
125
|
+
# @param agentic_confirm_transaction_events_request
|
|
126
|
+
# @param [Hash] opts the optional parameters
|
|
127
|
+
# @return [Array<(AgenticConfirmTransactionEventsResponse202, Fixnum, Hash)>] AgenticConfirmTransactionEventsResponse202 data, response status code and response headers
|
|
128
|
+
def confirm_transaction_events_with_http_info(instruction_id, agentic_confirm_transaction_events_request, opts = {})
|
|
129
|
+
|
|
130
|
+
if @api_client.config.debugging
|
|
131
|
+
begin
|
|
132
|
+
raise
|
|
133
|
+
@api_client.config.logger.debug 'Calling API: InstructionsApi.confirm_transaction_events ...'
|
|
134
|
+
rescue
|
|
135
|
+
puts 'Cannot write to log'
|
|
136
|
+
end
|
|
137
|
+
end
|
|
138
|
+
# verify the required parameter 'instruction_id' is set
|
|
139
|
+
if @api_client.config.client_side_validation && instruction_id.nil?
|
|
140
|
+
fail ArgumentError, "Missing the required parameter 'instruction_id' when calling InstructionsApi.confirm_transaction_events"
|
|
141
|
+
end
|
|
142
|
+
# verify the required parameter 'agentic_confirm_transaction_events_request' is set
|
|
143
|
+
if @api_client.config.client_side_validation && agentic_confirm_transaction_events_request.nil?
|
|
144
|
+
fail ArgumentError, "Missing the required parameter 'agentic_confirm_transaction_events_request' when calling InstructionsApi.confirm_transaction_events"
|
|
145
|
+
end
|
|
146
|
+
# resource path
|
|
147
|
+
local_var_path = 'acp/v1/instructions/{instructionId}/confirmations'.sub('{' + 'instructionId' + '}', instruction_id.to_s)
|
|
148
|
+
|
|
149
|
+
# query parameters
|
|
150
|
+
query_params = {}
|
|
151
|
+
|
|
152
|
+
# header parameters
|
|
153
|
+
header_params = {}
|
|
154
|
+
# HTTP header 'Accept' (if needed)
|
|
155
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/hal+json;charset=utf-8'])
|
|
156
|
+
# HTTP header 'Content-Type'
|
|
157
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
|
|
158
|
+
|
|
159
|
+
# form parameters
|
|
160
|
+
form_params = {}
|
|
161
|
+
|
|
162
|
+
# http body (model)
|
|
163
|
+
post_body = @api_client.object_to_http_body(agentic_confirm_transaction_events_request)
|
|
164
|
+
sdk_tracker = SdkTracker.new
|
|
165
|
+
post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'AgenticConfirmTransactionEventsRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
|
|
166
|
+
inbound_mle_status = "mandatory"
|
|
167
|
+
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["confirm_transaction_events","confirm_transaction_events_with_http_info"])
|
|
168
|
+
begin
|
|
169
|
+
post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
|
|
170
|
+
rescue
|
|
171
|
+
raise
|
|
172
|
+
end
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
is_response_mle_for_api = MLEUtility.check_is_response_mle_for_api(@api_client.merchantconfig, ["confirm_transaction_events","confirm_transaction_events_with_http_info"])
|
|
176
|
+
|
|
177
|
+
auth_names = []
|
|
178
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
179
|
+
:header_params => header_params,
|
|
180
|
+
:query_params => query_params,
|
|
181
|
+
:form_params => form_params,
|
|
182
|
+
:body => post_body,
|
|
183
|
+
:auth_names => auth_names,
|
|
184
|
+
:return_type => 'AgenticConfirmTransactionEventsResponse202',
|
|
185
|
+
:isResponseMLEForApi => is_response_mle_for_api)
|
|
186
|
+
if @api_client.config.debugging
|
|
187
|
+
begin
|
|
188
|
+
raise
|
|
189
|
+
@api_client.config.logger.debug "API called: InstructionsApi#confirm_transaction_events\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
190
|
+
rescue
|
|
191
|
+
puts 'Cannot write to log'
|
|
192
|
+
end
|
|
193
|
+
end
|
|
194
|
+
return data, status_code, headers
|
|
195
|
+
end
|
|
196
|
+
# Initiate a purchase intent
|
|
197
|
+
# Creates a new purchase intent with the provided details.
|
|
198
|
+
#
|
|
199
|
+
# @param agentic_create_purchase_intent_request
|
|
200
|
+
# @param [Hash] opts the optional parameters
|
|
201
|
+
# @return [AgenticCreatePurchaseIntentResponse200]
|
|
202
|
+
#
|
|
203
|
+
def initiate_purchase_intent(agentic_create_purchase_intent_request, opts = {})
|
|
204
|
+
data, status_code, headers = initiate_purchase_intent_with_http_info(agentic_create_purchase_intent_request, opts)
|
|
205
|
+
return data, status_code, headers
|
|
206
|
+
end
|
|
207
|
+
|
|
208
|
+
# Initiate a purchase intent
|
|
209
|
+
# Creates a new purchase intent with the provided details.
|
|
210
|
+
# @param agentic_create_purchase_intent_request
|
|
211
|
+
# @param [Hash] opts the optional parameters
|
|
212
|
+
# @return [Array<(AgenticCreatePurchaseIntentResponse200, Fixnum, Hash)>] AgenticCreatePurchaseIntentResponse200 data, response status code and response headers
|
|
213
|
+
def initiate_purchase_intent_with_http_info(agentic_create_purchase_intent_request, opts = {})
|
|
214
|
+
|
|
215
|
+
if @api_client.config.debugging
|
|
216
|
+
begin
|
|
217
|
+
raise
|
|
218
|
+
@api_client.config.logger.debug 'Calling API: InstructionsApi.initiate_purchase_intent ...'
|
|
219
|
+
rescue
|
|
220
|
+
puts 'Cannot write to log'
|
|
221
|
+
end
|
|
222
|
+
end
|
|
223
|
+
# verify the required parameter 'agentic_create_purchase_intent_request' is set
|
|
224
|
+
if @api_client.config.client_side_validation && agentic_create_purchase_intent_request.nil?
|
|
225
|
+
fail ArgumentError, "Missing the required parameter 'agentic_create_purchase_intent_request' when calling InstructionsApi.initiate_purchase_intent"
|
|
226
|
+
end
|
|
227
|
+
# resource path
|
|
228
|
+
local_var_path = 'acp/v1/instructions'
|
|
229
|
+
|
|
230
|
+
# query parameters
|
|
231
|
+
query_params = {}
|
|
232
|
+
|
|
233
|
+
# header parameters
|
|
234
|
+
header_params = {}
|
|
235
|
+
# HTTP header 'Accept' (if needed)
|
|
236
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/hal+json;charset=utf-8'])
|
|
237
|
+
# HTTP header 'Content-Type'
|
|
238
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
|
|
239
|
+
|
|
240
|
+
# form parameters
|
|
241
|
+
form_params = {}
|
|
242
|
+
|
|
243
|
+
# http body (model)
|
|
244
|
+
post_body = @api_client.object_to_http_body(agentic_create_purchase_intent_request)
|
|
245
|
+
sdk_tracker = SdkTracker.new
|
|
246
|
+
post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'AgenticCreatePurchaseIntentRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
|
|
247
|
+
inbound_mle_status = "mandatory"
|
|
248
|
+
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["initiate_purchase_intent","initiate_purchase_intent_with_http_info"])
|
|
249
|
+
begin
|
|
250
|
+
post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
|
|
251
|
+
rescue
|
|
252
|
+
raise
|
|
253
|
+
end
|
|
254
|
+
end
|
|
255
|
+
|
|
256
|
+
is_response_mle_for_api = MLEUtility.check_is_response_mle_for_api(@api_client.merchantconfig, ["initiate_purchase_intent","initiate_purchase_intent_with_http_info"])
|
|
257
|
+
|
|
258
|
+
auth_names = []
|
|
259
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
260
|
+
:header_params => header_params,
|
|
261
|
+
:query_params => query_params,
|
|
262
|
+
:form_params => form_params,
|
|
263
|
+
:body => post_body,
|
|
264
|
+
:auth_names => auth_names,
|
|
265
|
+
:return_type => 'AgenticCreatePurchaseIntentResponse200',
|
|
266
|
+
:isResponseMLEForApi => is_response_mle_for_api)
|
|
267
|
+
if @api_client.config.debugging
|
|
268
|
+
begin
|
|
269
|
+
raise
|
|
270
|
+
@api_client.config.logger.debug "API called: InstructionsApi#initiate_purchase_intent\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
271
|
+
rescue
|
|
272
|
+
puts 'Cannot write to log'
|
|
273
|
+
end
|
|
274
|
+
end
|
|
275
|
+
return data, status_code, headers
|
|
276
|
+
end
|
|
277
|
+
# Retrieve payment credentials
|
|
278
|
+
# Retrieve a customer's tokenized payment credentials to complete the transaction.
|
|
279
|
+
#
|
|
280
|
+
# @param instruction_id Unique identifier for the purchase intent instruction.
|
|
281
|
+
# @param agentic_retrieve_payment_credentials_request
|
|
282
|
+
# @param [Hash] opts the optional parameters
|
|
283
|
+
# @return [AgenticRetrievePaymentCredentialsResponse200]
|
|
284
|
+
#
|
|
285
|
+
def retrieve_payment_credentials(instruction_id, agentic_retrieve_payment_credentials_request, opts = {})
|
|
286
|
+
data, status_code, headers = retrieve_payment_credentials_with_http_info(instruction_id, agentic_retrieve_payment_credentials_request, opts)
|
|
287
|
+
return data, status_code, headers
|
|
288
|
+
end
|
|
289
|
+
|
|
290
|
+
# Retrieve payment credentials
|
|
291
|
+
# Retrieve a customer's tokenized payment credentials to complete the transaction.
|
|
292
|
+
# @param instruction_id Unique identifier for the purchase intent instruction.
|
|
293
|
+
# @param agentic_retrieve_payment_credentials_request
|
|
294
|
+
# @param [Hash] opts the optional parameters
|
|
295
|
+
# @return [Array<(AgenticRetrievePaymentCredentialsResponse200, Fixnum, Hash)>] AgenticRetrievePaymentCredentialsResponse200 data, response status code and response headers
|
|
296
|
+
def retrieve_payment_credentials_with_http_info(instruction_id, agentic_retrieve_payment_credentials_request, opts = {})
|
|
297
|
+
|
|
298
|
+
if @api_client.config.debugging
|
|
299
|
+
begin
|
|
300
|
+
raise
|
|
301
|
+
@api_client.config.logger.debug 'Calling API: InstructionsApi.retrieve_payment_credentials ...'
|
|
302
|
+
rescue
|
|
303
|
+
puts 'Cannot write to log'
|
|
304
|
+
end
|
|
305
|
+
end
|
|
306
|
+
# verify the required parameter 'instruction_id' is set
|
|
307
|
+
if @api_client.config.client_side_validation && instruction_id.nil?
|
|
308
|
+
fail ArgumentError, "Missing the required parameter 'instruction_id' when calling InstructionsApi.retrieve_payment_credentials"
|
|
309
|
+
end
|
|
310
|
+
# verify the required parameter 'agentic_retrieve_payment_credentials_request' is set
|
|
311
|
+
if @api_client.config.client_side_validation && agentic_retrieve_payment_credentials_request.nil?
|
|
312
|
+
fail ArgumentError, "Missing the required parameter 'agentic_retrieve_payment_credentials_request' when calling InstructionsApi.retrieve_payment_credentials"
|
|
313
|
+
end
|
|
314
|
+
# resource path
|
|
315
|
+
local_var_path = 'acp/v1/instructions/{instructionId}/credentials'.sub('{' + 'instructionId' + '}', instruction_id.to_s)
|
|
316
|
+
|
|
317
|
+
# query parameters
|
|
318
|
+
query_params = {}
|
|
319
|
+
|
|
320
|
+
# header parameters
|
|
321
|
+
header_params = {}
|
|
322
|
+
# HTTP header 'Accept' (if needed)
|
|
323
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/hal+json;charset=utf-8'])
|
|
324
|
+
# HTTP header 'Content-Type'
|
|
325
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
|
|
326
|
+
|
|
327
|
+
# form parameters
|
|
328
|
+
form_params = {}
|
|
329
|
+
|
|
330
|
+
# http body (model)
|
|
331
|
+
post_body = @api_client.object_to_http_body(agentic_retrieve_payment_credentials_request)
|
|
332
|
+
sdk_tracker = SdkTracker.new
|
|
333
|
+
post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'AgenticRetrievePaymentCredentialsRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
|
|
334
|
+
inbound_mle_status = "mandatory"
|
|
335
|
+
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["retrieve_payment_credentials","retrieve_payment_credentials_with_http_info"])
|
|
336
|
+
begin
|
|
337
|
+
post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
|
|
338
|
+
rescue
|
|
339
|
+
raise
|
|
340
|
+
end
|
|
341
|
+
end
|
|
342
|
+
|
|
343
|
+
is_response_mle_for_api = MLEUtility.check_is_response_mle_for_api(@api_client.merchantconfig, ["retrieve_payment_credentials","retrieve_payment_credentials_with_http_info"])
|
|
344
|
+
|
|
345
|
+
auth_names = []
|
|
346
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
347
|
+
:header_params => header_params,
|
|
348
|
+
:query_params => query_params,
|
|
349
|
+
:form_params => form_params,
|
|
350
|
+
:body => post_body,
|
|
351
|
+
:auth_names => auth_names,
|
|
352
|
+
:return_type => 'AgenticRetrievePaymentCredentialsResponse200',
|
|
353
|
+
:isResponseMLEForApi => is_response_mle_for_api)
|
|
354
|
+
if @api_client.config.debugging
|
|
355
|
+
begin
|
|
356
|
+
raise
|
|
357
|
+
@api_client.config.logger.debug "API called: InstructionsApi#retrieve_payment_credentials\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
358
|
+
rescue
|
|
359
|
+
puts 'Cannot write to log'
|
|
360
|
+
end
|
|
361
|
+
end
|
|
362
|
+
return data, status_code, headers
|
|
363
|
+
end
|
|
364
|
+
# Update a purchase intent
|
|
365
|
+
# Updates an existing purchase intent identified by the transaction ID.
|
|
366
|
+
#
|
|
367
|
+
# @param instruction_id Unique identifier for the purchase intent instruction.
|
|
368
|
+
# @param agentic_update_purchase_intent_request
|
|
369
|
+
# @param [Hash] opts the optional parameters
|
|
370
|
+
# @return [AgenticCreatePurchaseIntentResponse200]
|
|
371
|
+
#
|
|
372
|
+
def update_purchase_intent(instruction_id, agentic_update_purchase_intent_request, opts = {})
|
|
373
|
+
data, status_code, headers = update_purchase_intent_with_http_info(instruction_id, agentic_update_purchase_intent_request, opts)
|
|
374
|
+
return data, status_code, headers
|
|
375
|
+
end
|
|
376
|
+
|
|
377
|
+
# Update a purchase intent
|
|
378
|
+
# Updates an existing purchase intent identified by the transaction ID.
|
|
379
|
+
# @param instruction_id Unique identifier for the purchase intent instruction.
|
|
380
|
+
# @param agentic_update_purchase_intent_request
|
|
381
|
+
# @param [Hash] opts the optional parameters
|
|
382
|
+
# @return [Array<(AgenticCreatePurchaseIntentResponse200, Fixnum, Hash)>] AgenticCreatePurchaseIntentResponse200 data, response status code and response headers
|
|
383
|
+
def update_purchase_intent_with_http_info(instruction_id, agentic_update_purchase_intent_request, opts = {})
|
|
384
|
+
|
|
385
|
+
if @api_client.config.debugging
|
|
386
|
+
begin
|
|
387
|
+
raise
|
|
388
|
+
@api_client.config.logger.debug 'Calling API: InstructionsApi.update_purchase_intent ...'
|
|
389
|
+
rescue
|
|
390
|
+
puts 'Cannot write to log'
|
|
391
|
+
end
|
|
392
|
+
end
|
|
393
|
+
# verify the required parameter 'instruction_id' is set
|
|
394
|
+
if @api_client.config.client_side_validation && instruction_id.nil?
|
|
395
|
+
fail ArgumentError, "Missing the required parameter 'instruction_id' when calling InstructionsApi.update_purchase_intent"
|
|
396
|
+
end
|
|
397
|
+
# verify the required parameter 'agentic_update_purchase_intent_request' is set
|
|
398
|
+
if @api_client.config.client_side_validation && agentic_update_purchase_intent_request.nil?
|
|
399
|
+
fail ArgumentError, "Missing the required parameter 'agentic_update_purchase_intent_request' when calling InstructionsApi.update_purchase_intent"
|
|
400
|
+
end
|
|
401
|
+
# resource path
|
|
402
|
+
local_var_path = 'acp/v1/instructions/{instructionId}'.sub('{' + 'instructionId' + '}', instruction_id.to_s)
|
|
403
|
+
|
|
404
|
+
# query parameters
|
|
405
|
+
query_params = {}
|
|
406
|
+
|
|
407
|
+
# header parameters
|
|
408
|
+
header_params = {}
|
|
409
|
+
# HTTP header 'Accept' (if needed)
|
|
410
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/hal+json;charset=utf-8'])
|
|
411
|
+
# HTTP header 'Content-Type'
|
|
412
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
|
|
413
|
+
|
|
414
|
+
# form parameters
|
|
415
|
+
form_params = {}
|
|
416
|
+
|
|
417
|
+
# http body (model)
|
|
418
|
+
post_body = @api_client.object_to_http_body(agentic_update_purchase_intent_request)
|
|
419
|
+
sdk_tracker = SdkTracker.new
|
|
420
|
+
post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'AgenticUpdatePurchaseIntentRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
|
|
421
|
+
inbound_mle_status = "mandatory"
|
|
422
|
+
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["update_purchase_intent","update_purchase_intent_with_http_info"])
|
|
423
|
+
begin
|
|
424
|
+
post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
|
|
425
|
+
rescue
|
|
426
|
+
raise
|
|
427
|
+
end
|
|
428
|
+
end
|
|
429
|
+
|
|
430
|
+
is_response_mle_for_api = MLEUtility.check_is_response_mle_for_api(@api_client.merchantconfig, ["update_purchase_intent","update_purchase_intent_with_http_info"])
|
|
431
|
+
|
|
432
|
+
auth_names = []
|
|
433
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
|
434
|
+
:header_params => header_params,
|
|
435
|
+
:query_params => query_params,
|
|
436
|
+
:form_params => form_params,
|
|
437
|
+
:body => post_body,
|
|
438
|
+
:auth_names => auth_names,
|
|
439
|
+
:return_type => 'AgenticCreatePurchaseIntentResponse200',
|
|
440
|
+
:isResponseMLEForApi => is_response_mle_for_api)
|
|
441
|
+
if @api_client.config.debugging
|
|
442
|
+
begin
|
|
443
|
+
raise
|
|
444
|
+
@api_client.config.logger.debug "API called: InstructionsApi#update_purchase_intent\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
445
|
+
rescue
|
|
446
|
+
puts 'Cannot write to log'
|
|
447
|
+
end
|
|
448
|
+
end
|
|
449
|
+
return data, status_code, headers
|
|
450
|
+
end
|
|
451
|
+
end
|
|
452
|
+
end
|
|
@@ -75,7 +75,7 @@ module CyberSource
|
|
|
75
75
|
else
|
|
76
76
|
post_body = nil
|
|
77
77
|
end
|
|
78
|
-
inbound_mle_status = "false"
|
|
78
|
+
inbound_mle_status = "false"
|
|
79
79
|
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["delete_instrument_identifier","delete_instrument_identifier_with_http_info"])
|
|
80
80
|
begin
|
|
81
81
|
post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
|
|
@@ -83,13 +83,17 @@ module CyberSource
|
|
|
83
83
|
raise
|
|
84
84
|
end
|
|
85
85
|
end
|
|
86
|
+
|
|
87
|
+
is_response_mle_for_api = MLEUtility.check_is_response_mle_for_api(@api_client.merchantconfig, ["delete_instrument_identifier","delete_instrument_identifier_with_http_info"])
|
|
88
|
+
|
|
86
89
|
auth_names = []
|
|
87
90
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
|
88
91
|
:header_params => header_params,
|
|
89
92
|
:query_params => query_params,
|
|
90
93
|
:form_params => form_params,
|
|
91
94
|
:body => post_body,
|
|
92
|
-
:auth_names => auth_names
|
|
95
|
+
:auth_names => auth_names,
|
|
96
|
+
:isResponseMLEForApi => is_response_mle_for_api)
|
|
93
97
|
if @api_client.config.debugging
|
|
94
98
|
begin
|
|
95
99
|
raise
|
|
@@ -159,7 +163,7 @@ module CyberSource
|
|
|
159
163
|
else
|
|
160
164
|
post_body = nil
|
|
161
165
|
end
|
|
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, ["get_instrument_identifier","get_instrument_identifier_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, ["get_instrument_identifier","get_instrument_identifier_with_http_info"])
|
|
176
|
+
|
|
170
177
|
auth_names = []
|
|
171
178
|
data, status_code, headers = @api_client.call_api(:GET, 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 => 'PostInstrumentIdentifierRequest'
|
|
184
|
+
:return_type => 'PostInstrumentIdentifierRequest',
|
|
185
|
+
:isResponseMLEForApi => is_response_mle_for_api)
|
|
178
186
|
if @api_client.config.debugging
|
|
179
187
|
begin
|
|
180
188
|
raise
|
|
@@ -250,7 +258,7 @@ module CyberSource
|
|
|
250
258
|
else
|
|
251
259
|
post_body = nil
|
|
252
260
|
end
|
|
253
|
-
inbound_mle_status = "false"
|
|
261
|
+
inbound_mle_status = "false"
|
|
254
262
|
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_instrument_identifier_payment_instruments_list","get_instrument_identifier_payment_instruments_list_with_http_info"])
|
|
255
263
|
begin
|
|
256
264
|
post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
|
|
@@ -258,6 +266,9 @@ module CyberSource
|
|
|
258
266
|
raise
|
|
259
267
|
end
|
|
260
268
|
end
|
|
269
|
+
|
|
270
|
+
is_response_mle_for_api = MLEUtility.check_is_response_mle_for_api(@api_client.merchantconfig, ["get_instrument_identifier_payment_instruments_list","get_instrument_identifier_payment_instruments_list_with_http_info"])
|
|
271
|
+
|
|
261
272
|
auth_names = []
|
|
262
273
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
263
274
|
:header_params => header_params,
|
|
@@ -265,7 +276,8 @@ module CyberSource
|
|
|
265
276
|
:form_params => form_params,
|
|
266
277
|
:body => post_body,
|
|
267
278
|
:auth_names => auth_names,
|
|
268
|
-
:return_type => 'PaymentInstrumentList1'
|
|
279
|
+
:return_type => 'PaymentInstrumentList1',
|
|
280
|
+
:isResponseMLEForApi => is_response_mle_for_api)
|
|
269
281
|
if @api_client.config.debugging
|
|
270
282
|
begin
|
|
271
283
|
raise
|
|
@@ -342,7 +354,7 @@ module CyberSource
|
|
|
342
354
|
post_body = @api_client.object_to_http_body(patch_instrument_identifier_request)
|
|
343
355
|
sdk_tracker = SdkTracker.new
|
|
344
356
|
post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'PatchInstrumentIdentifierRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
|
|
345
|
-
inbound_mle_status = "optional"
|
|
357
|
+
inbound_mle_status = "optional"
|
|
346
358
|
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["patch_instrument_identifier","patch_instrument_identifier_with_http_info"])
|
|
347
359
|
begin
|
|
348
360
|
post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
|
|
@@ -350,6 +362,9 @@ module CyberSource
|
|
|
350
362
|
raise
|
|
351
363
|
end
|
|
352
364
|
end
|
|
365
|
+
|
|
366
|
+
is_response_mle_for_api = MLEUtility.check_is_response_mle_for_api(@api_client.merchantconfig, ["patch_instrument_identifier","patch_instrument_identifier_with_http_info"])
|
|
367
|
+
|
|
353
368
|
auth_names = []
|
|
354
369
|
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
|
|
355
370
|
:header_params => header_params,
|
|
@@ -357,7 +372,8 @@ module CyberSource
|
|
|
357
372
|
:form_params => form_params,
|
|
358
373
|
:body => post_body,
|
|
359
374
|
:auth_names => auth_names,
|
|
360
|
-
:return_type => 'PatchInstrumentIdentifierRequest'
|
|
375
|
+
:return_type => 'PatchInstrumentIdentifierRequest',
|
|
376
|
+
:isResponseMLEForApi => is_response_mle_for_api)
|
|
361
377
|
if @api_client.config.debugging
|
|
362
378
|
begin
|
|
363
379
|
raise
|
|
@@ -425,7 +441,7 @@ module CyberSource
|
|
|
425
441
|
post_body = @api_client.object_to_http_body(post_instrument_identifier_request)
|
|
426
442
|
sdk_tracker = SdkTracker.new
|
|
427
443
|
post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'PostInstrumentIdentifierRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
|
|
428
|
-
inbound_mle_status = "optional"
|
|
444
|
+
inbound_mle_status = "optional"
|
|
429
445
|
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["post_instrument_identifier","post_instrument_identifier_with_http_info"])
|
|
430
446
|
begin
|
|
431
447
|
post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
|
|
@@ -433,6 +449,9 @@ module CyberSource
|
|
|
433
449
|
raise
|
|
434
450
|
end
|
|
435
451
|
end
|
|
452
|
+
|
|
453
|
+
is_response_mle_for_api = MLEUtility.check_is_response_mle_for_api(@api_client.merchantconfig, ["post_instrument_identifier","post_instrument_identifier_with_http_info"])
|
|
454
|
+
|
|
436
455
|
auth_names = []
|
|
437
456
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
438
457
|
:header_params => header_params,
|
|
@@ -440,7 +459,8 @@ module CyberSource
|
|
|
440
459
|
:form_params => form_params,
|
|
441
460
|
:body => post_body,
|
|
442
461
|
:auth_names => auth_names,
|
|
443
|
-
:return_type => 'PostInstrumentIdentifierRequest'
|
|
462
|
+
:return_type => 'PostInstrumentIdentifierRequest',
|
|
463
|
+
:isResponseMLEForApi => is_response_mle_for_api)
|
|
444
464
|
if @api_client.config.debugging
|
|
445
465
|
begin
|
|
446
466
|
raise
|
|
@@ -511,7 +531,7 @@ module CyberSource
|
|
|
511
531
|
post_body = @api_client.object_to_http_body(post_instrument_identifier_enrollment_request)
|
|
512
532
|
sdk_tracker = SdkTracker.new
|
|
513
533
|
post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'PostInstrumentIdentifierEnrollmentRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
|
|
514
|
-
inbound_mle_status = "optional"
|
|
534
|
+
inbound_mle_status = "optional"
|
|
515
535
|
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["post_instrument_identifier_enrollment","post_instrument_identifier_enrollment_with_http_info"])
|
|
516
536
|
begin
|
|
517
537
|
post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
|
|
@@ -519,13 +539,17 @@ module CyberSource
|
|
|
519
539
|
raise
|
|
520
540
|
end
|
|
521
541
|
end
|
|
542
|
+
|
|
543
|
+
is_response_mle_for_api = MLEUtility.check_is_response_mle_for_api(@api_client.merchantconfig, ["post_instrument_identifier_enrollment","post_instrument_identifier_enrollment_with_http_info"])
|
|
544
|
+
|
|
522
545
|
auth_names = []
|
|
523
546
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
524
547
|
:header_params => header_params,
|
|
525
548
|
:query_params => query_params,
|
|
526
549
|
:form_params => form_params,
|
|
527
550
|
:body => post_body,
|
|
528
|
-
:auth_names => auth_names
|
|
551
|
+
:auth_names => auth_names,
|
|
552
|
+
:isResponseMLEForApi => is_response_mle_for_api)
|
|
529
553
|
if @api_client.config.debugging
|
|
530
554
|
begin
|
|
531
555
|
raise
|
|
@@ -87,7 +87,7 @@ module CyberSource
|
|
|
87
87
|
else
|
|
88
88
|
post_body = nil
|
|
89
89
|
end
|
|
90
|
-
inbound_mle_status = "false"
|
|
90
|
+
inbound_mle_status = "false"
|
|
91
91
|
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_interchange_clearing_level_details","get_interchange_clearing_level_details_with_http_info"])
|
|
92
92
|
begin
|
|
93
93
|
post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
|
|
@@ -95,6 +95,9 @@ module CyberSource
|
|
|
95
95
|
raise
|
|
96
96
|
end
|
|
97
97
|
end
|
|
98
|
+
|
|
99
|
+
is_response_mle_for_api = MLEUtility.check_is_response_mle_for_api(@api_client.merchantconfig, ["get_interchange_clearing_level_details","get_interchange_clearing_level_details_with_http_info"])
|
|
100
|
+
|
|
98
101
|
auth_names = []
|
|
99
102
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
100
103
|
:header_params => header_params,
|
|
@@ -102,7 +105,8 @@ module CyberSource
|
|
|
102
105
|
:form_params => form_params,
|
|
103
106
|
:body => post_body,
|
|
104
107
|
:auth_names => auth_names,
|
|
105
|
-
:return_type => 'ReportingV3InterchangeClearingLevelDetailsGet200Response'
|
|
108
|
+
:return_type => 'ReportingV3InterchangeClearingLevelDetailsGet200Response',
|
|
109
|
+
:isResponseMLEForApi => is_response_mle_for_api)
|
|
106
110
|
if @api_client.config.debugging
|
|
107
111
|
begin
|
|
108
112
|
raise
|