cybersource_rest_client 0.0.16 → 0.0.17
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/cybersource_rest_client.rb +12 -5
- data/lib/cybersource_rest_client/api/credit_api.rb +1 -1
- data/lib/cybersource_rest_client/api/download_dtd_api.rb +4 -4
- data/lib/cybersource_rest_client/api/download_xsd_api.rb +4 -4
- data/lib/cybersource_rest_client/api/payments_api.rb +1 -1
- data/lib/cybersource_rest_client/api/report_subscriptions_api.rb +9 -9
- data/lib/cybersource_rest_client/api/reports_api.rb +9 -9
- data/lib/cybersource_rest_client/api/search_transactions_api.rb +1 -1
- data/lib/cybersource_rest_client/api/transaction_batches_api.rb +2 -8
- data/lib/cybersource_rest_client/models/{request_body.rb → create_adhoc_report_request.rb} +1 -1
- data/lib/cybersource_rest_client/models/{request_body_1.rb → create_report_subscription_request.rb} +1 -1
- data/lib/cybersource_rest_client/models/error.rb +23 -13
- data/lib/cybersource_rest_client/models/error_bean.rb +1 -1
- data/lib/cybersource_rest_client/models/error_links.rb +15 -15
- data/lib/cybersource_rest_client/models/error_response.rb +2 -20
- data/lib/cybersource_rest_client/models/inline_response_400.rb +59 -14
- data/lib/cybersource_rest_client/models/inline_response_400_1.rb +14 -59
- data/lib/cybersource_rest_client/models/{inline_response_400_1_fields.rb → inline_response_400_fields.rb} +1 -1
- data/lib/cybersource_rest_client/models/link.rb +4 -25
- data/lib/cybersource_rest_client/models/links.rb +14 -18
- data/lib/cybersource_rest_client/models/ptsv2credits_processing_information.rb +22 -4
- data/lib/cybersource_rest_client/models/ptsv2credits_processing_information_electronic_benefits_transfer.rb +199 -0
- data/lib/cybersource_rest_client/models/ptsv2credits_processing_information_purchase_options.rb +184 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details.rb +29 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_line_items.rb +6 -6
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information.rb +13 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_payment_type.rb +203 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_payment_type_method.rb +184 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information.rb +22 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_electronic_benefits_transfer.rb +224 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_purchase_options.rb +209 -0
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_amount_details.rb +29 -4
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_order_information_line_items.rb +6 -6
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information.rb +13 -4
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_order_information_line_items.rb +6 -6
- data/lib/cybersource_rest_client/models/ptsv2paymentsidvoids_payment_information.rb +183 -0
- data/lib/cybersource_rest_client/models/riskv1decisions_order_information_line_items.rb +6 -6
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_payment_type.rb +2 -2
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information_payment_type.rb +1 -1
- data/lib/cybersource_rest_client/models/void_capture_request.rb +13 -4
- data/lib/cybersource_rest_client/models/void_credit_request.rb +13 -4
- data/lib/cybersource_rest_client/models/void_payment_request.rb +13 -4
- data/lib/cybersource_rest_client/models/void_refund_request.rb +13 -4
- metadata +12 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9dfed6fc9c3049b68bcd766df9fdc3e9485100137cbfca0887f33376c7efbcaf
|
4
|
+
data.tar.gz: 13a4f20a1be608be2ef1219a4b574a626e9790b23aa0e9b3cbe0bd6b258ec46c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f16c909ed9110e4e8691be059483b226d4a42aa9e016dfac2f3001f7c33e5664dddecf64c84739315e3e026d7cda773daec9ab95340e135f0c07f57daba07c5e
|
7
|
+
data.tar.gz: 75003f8e63da027dba4ce0e23a206b72df28c087f0c675e96509146fe3e03ef9642bb0bea6e683a283891c346bfe0bd048c81590d282b763a709612a06a03bc8
|
@@ -36,11 +36,13 @@ require 'cybersource_rest_client/models/bill_to'
|
|
36
36
|
require 'cybersource_rest_client/models/buyer_information'
|
37
37
|
require 'cybersource_rest_client/models/capture_payment_request'
|
38
38
|
require 'cybersource_rest_client/models/card_info'
|
39
|
+
require 'cybersource_rest_client/models/create_adhoc_report_request'
|
39
40
|
require 'cybersource_rest_client/models/create_credit_request'
|
40
41
|
require 'cybersource_rest_client/models/create_decision_manager_case_request'
|
41
42
|
require 'cybersource_rest_client/models/create_instrument_identifier_request'
|
42
43
|
require 'cybersource_rest_client/models/create_payment_instrument_request'
|
43
44
|
require 'cybersource_rest_client/models/create_payment_request'
|
45
|
+
require 'cybersource_rest_client/models/create_report_subscription_request'
|
44
46
|
require 'cybersource_rest_client/models/create_search_request'
|
45
47
|
require 'cybersource_rest_client/models/der_public_key'
|
46
48
|
require 'cybersource_rest_client/models/detail'
|
@@ -64,7 +66,7 @@ require 'cybersource_rest_client/models/generate_public_key_request'
|
|
64
66
|
require 'cybersource_rest_client/models/initiator'
|
65
67
|
require 'cybersource_rest_client/models/inline_response_400'
|
66
68
|
require 'cybersource_rest_client/models/inline_response_400_1'
|
67
|
-
require 'cybersource_rest_client/models/
|
69
|
+
require 'cybersource_rest_client/models/inline_response_400_fields'
|
68
70
|
require 'cybersource_rest_client/models/inline_response_default'
|
69
71
|
require 'cybersource_rest_client/models/inline_response_default__links'
|
70
72
|
require 'cybersource_rest_client/models/inline_response_default__links_next'
|
@@ -186,6 +188,8 @@ require 'cybersource_rest_client/models/ptsv2credits_point_of_sale_information'
|
|
186
188
|
require 'cybersource_rest_client/models/ptsv2credits_point_of_sale_information_emv'
|
187
189
|
require 'cybersource_rest_client/models/ptsv2credits_processing_information'
|
188
190
|
require 'cybersource_rest_client/models/ptsv2credits_processing_information_bank_transfer_options'
|
191
|
+
require 'cybersource_rest_client/models/ptsv2credits_processing_information_electronic_benefits_transfer'
|
192
|
+
require 'cybersource_rest_client/models/ptsv2credits_processing_information_purchase_options'
|
189
193
|
require 'cybersource_rest_client/models/ptsv2payments_aggregator_information'
|
190
194
|
require 'cybersource_rest_client/models/ptsv2payments_aggregator_information_sub_merchant'
|
191
195
|
require 'cybersource_rest_client/models/ptsv2payments_buyer_information'
|
@@ -217,6 +221,8 @@ require 'cybersource_rest_client/models/ptsv2payments_payment_information_bank_a
|
|
217
221
|
require 'cybersource_rest_client/models/ptsv2payments_payment_information_card'
|
218
222
|
require 'cybersource_rest_client/models/ptsv2payments_payment_information_customer'
|
219
223
|
require 'cybersource_rest_client/models/ptsv2payments_payment_information_fluid_data'
|
224
|
+
require 'cybersource_rest_client/models/ptsv2payments_payment_information_payment_type'
|
225
|
+
require 'cybersource_rest_client/models/ptsv2payments_payment_information_payment_type_method'
|
220
226
|
require 'cybersource_rest_client/models/ptsv2payments_payment_information_tokenized_card'
|
221
227
|
require 'cybersource_rest_client/models/ptsv2payments_point_of_sale_information'
|
222
228
|
require 'cybersource_rest_client/models/ptsv2payments_point_of_sale_information_emv'
|
@@ -226,6 +232,8 @@ require 'cybersource_rest_client/models/ptsv2payments_processing_information_aut
|
|
226
232
|
require 'cybersource_rest_client/models/ptsv2payments_merchant_initiated_transaction'
|
227
233
|
require 'cybersource_rest_client/models/ptsv2payments_processing_information_bank_transfer_options'
|
228
234
|
require 'cybersource_rest_client/models/ptsv2payments_processing_information_capture_options'
|
235
|
+
require 'cybersource_rest_client/models/ptsv2payments_processing_information_electronic_benefits_transfer'
|
236
|
+
require 'cybersource_rest_client/models/ptsv2payments_processing_information_purchase_options'
|
229
237
|
require 'cybersource_rest_client/models/ptsv2payments_processing_information_recurring_options'
|
230
238
|
require 'cybersource_rest_client/models/ptsv2payments_recipient_information'
|
231
239
|
require 'cybersource_rest_client/models/ptsv2paymentsidcaptures_aggregator_information'
|
@@ -263,6 +271,7 @@ require 'cybersource_rest_client/models/ptsv2paymentsidreversals_point_of_sale_i
|
|
263
271
|
require 'cybersource_rest_client/models/ptsv2paymentsidreversals_processing_information'
|
264
272
|
require 'cybersource_rest_client/models/ptsv2paymentsidreversals_reversal_information'
|
265
273
|
require 'cybersource_rest_client/models/ptsv2paymentsidreversals_reversal_information_amount_details'
|
274
|
+
require 'cybersource_rest_client/models/ptsv2paymentsidvoids_payment_information'
|
266
275
|
require 'cybersource_rest_client/models/ptsv2payouts_client_reference_information'
|
267
276
|
require 'cybersource_rest_client/models/ptsv2payouts_merchant_information'
|
268
277
|
require 'cybersource_rest_client/models/ptsv2payouts_merchant_information_merchant_descriptor'
|
@@ -308,8 +317,6 @@ require 'cybersource_rest_client/models/reporting_v3_reports_id_get200_response'
|
|
308
317
|
require 'cybersource_rest_client/models/reportingv3_report_downloads_get400_response'
|
309
318
|
require 'cybersource_rest_client/models/reportingv3_report_downloads_get400_response_details'
|
310
319
|
require 'cybersource_rest_client/models/reportingv3reports_report_preferences'
|
311
|
-
require 'cybersource_rest_client/models/request_body'
|
312
|
-
require 'cybersource_rest_client/models/request_body_1'
|
313
320
|
require 'cybersource_rest_client/models/response_status'
|
314
321
|
require 'cybersource_rest_client/models/response_status_details'
|
315
322
|
require 'cybersource_rest_client/models/risk_v1_decisions_post201_response'
|
@@ -476,8 +483,8 @@ require 'cybersource_rest_client/api/capture_api'
|
|
476
483
|
require 'cybersource_rest_client/api/conversion_details_api'
|
477
484
|
require 'cybersource_rest_client/api/credit_api'
|
478
485
|
require 'cybersource_rest_client/api/decision_manager_api'
|
479
|
-
|
480
|
-
|
486
|
+
require 'cybersource_rest_client/api/download_dtd_api'
|
487
|
+
require 'cybersource_rest_client/api/download_xsd_api'
|
481
488
|
require 'cybersource_rest_client/api/instrument_identifier_api'
|
482
489
|
require 'cybersource_rest_client/api/key_generation_api'
|
483
490
|
require 'cybersource_rest_client/api/net_fundings_api'
|
@@ -50,7 +50,7 @@ module CyberSource
|
|
50
50
|
fail ArgumentError, "Missing the required parameter 'create_credit_request' when calling CreditApi.create_credit"
|
51
51
|
end
|
52
52
|
# resource path
|
53
|
-
local_var_path = 'pts/v2/credits
|
53
|
+
local_var_path = 'pts/v2/credits'
|
54
54
|
|
55
55
|
# query parameters
|
56
56
|
query_params = {}
|
@@ -20,8 +20,8 @@ module CyberSource
|
|
20
20
|
@api_client = api_client
|
21
21
|
@api_client.set_configuration(config)
|
22
22
|
end
|
23
|
-
#
|
24
|
-
#
|
23
|
+
# Download DTD for report
|
24
|
+
# Used to download DTDs for reports on no-auth.
|
25
25
|
# @param report_definition_name_version Name and version of DTD file to download. Some DTDs only have one version. In that case version name is not needed. Some example values are ctdr-1.0, tdr, pbdr-1.1
|
26
26
|
# @param [Hash] opts the optional parameters
|
27
27
|
# @return [nil]
|
@@ -30,8 +30,8 @@ module CyberSource
|
|
30
30
|
return data, status_code, headers
|
31
31
|
end
|
32
32
|
|
33
|
-
#
|
34
|
-
#
|
33
|
+
# Download DTD for report
|
34
|
+
# Used to download DTDs for reports on no-auth.
|
35
35
|
# @param report_definition_name_version Name and version of DTD file to download. Some DTDs only have one version. In that case version name is not needed. Some example values are ctdr-1.0, tdr, pbdr-1.1
|
36
36
|
# @param [Hash] opts the optional parameters
|
37
37
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
@@ -20,8 +20,8 @@ module CyberSource
|
|
20
20
|
@api_client = api_client
|
21
21
|
@api_client.set_configuration(config)
|
22
22
|
end
|
23
|
-
#
|
24
|
-
#
|
23
|
+
# Download XSD for report
|
24
|
+
# Used to download XSDs for reports on no-auth.
|
25
25
|
# @param report_definition_name_version Name and version of XSD file to download. Some XSDs only have one version. In that case version name is not needed. Some example values are DecisionManagerDetailReport, DecisionManagerTypes
|
26
26
|
# @param [Hash] opts the optional parameters
|
27
27
|
# @return [nil]
|
@@ -30,8 +30,8 @@ module CyberSource
|
|
30
30
|
return data, status_code, headers
|
31
31
|
end
|
32
32
|
|
33
|
-
#
|
34
|
-
#
|
33
|
+
# Download XSD for report
|
34
|
+
# Used to download XSDs for reports on no-auth.
|
35
35
|
# @param report_definition_name_version Name and version of XSD file to download. Some XSDs only have one version. In that case version name is not needed. Some example values are DecisionManagerDetailReport, DecisionManagerTypes
|
36
36
|
# @param [Hash] opts the optional parameters
|
37
37
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
@@ -50,7 +50,7 @@ module CyberSource
|
|
50
50
|
fail ArgumentError, "Missing the required parameter 'create_payment_request' when calling PaymentsApi.create_payment"
|
51
51
|
end
|
52
52
|
# resource path
|
53
|
-
local_var_path = 'pts/v2/payments
|
53
|
+
local_var_path = 'pts/v2/payments'
|
54
54
|
|
55
55
|
# query parameters
|
56
56
|
query_params = {}
|
@@ -22,22 +22,22 @@ module CyberSource
|
|
22
22
|
end
|
23
23
|
# Create Report Subscription for a report name by organization
|
24
24
|
# Create a report subscription for your organization. The report name must be unique.
|
25
|
-
# @param
|
25
|
+
# @param create_report_subscription_request Report subscription request payload
|
26
26
|
# @param [Hash] opts the optional parameters
|
27
27
|
# @option opts [String] :organization_id Valid Cybersource Organization Id
|
28
28
|
# @return [nil]
|
29
|
-
def create_subscription(
|
30
|
-
data, status_code, headers = create_subscription_with_http_info(
|
29
|
+
def create_subscription(create_report_subscription_request, opts = {})
|
30
|
+
data, status_code, headers = create_subscription_with_http_info(create_report_subscription_request, opts)
|
31
31
|
return data, status_code, headers
|
32
32
|
end
|
33
33
|
|
34
34
|
# Create Report Subscription for a report name by organization
|
35
35
|
# Create a report subscription for your organization. The report name must be unique.
|
36
|
-
# @param
|
36
|
+
# @param create_report_subscription_request Report subscription request payload
|
37
37
|
# @param [Hash] opts the optional parameters
|
38
38
|
# @option opts [String] :organization_id Valid Cybersource Organization Id
|
39
39
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
40
|
-
def create_subscription_with_http_info(
|
40
|
+
def create_subscription_with_http_info(create_report_subscription_request, opts = {})
|
41
41
|
|
42
42
|
if @api_client.config.debugging
|
43
43
|
begin
|
@@ -47,9 +47,9 @@ module CyberSource
|
|
47
47
|
puts 'Cannot write to log'
|
48
48
|
end
|
49
49
|
end
|
50
|
-
# verify the required parameter '
|
51
|
-
if @api_client.config.client_side_validation &&
|
52
|
-
fail ArgumentError, "Missing the required parameter '
|
50
|
+
# verify the required parameter 'create_report_subscription_request' is set
|
51
|
+
if @api_client.config.client_side_validation && create_report_subscription_request.nil?
|
52
|
+
fail ArgumentError, "Missing the required parameter 'create_report_subscription_request' when calling ReportSubscriptionsApi.create_subscription"
|
53
53
|
end
|
54
54
|
if @api_client.config.client_side_validation && !opts[:'organization_id'].nil? && opts[:'organization_id'].to_s.length > 32
|
55
55
|
fail ArgumentError, 'invalid value for "opts[:"organization_id"]" when calling ReportSubscriptionsApi.create_subscription, the character length must be smaller than or equal to 32.'
|
@@ -81,7 +81,7 @@ module CyberSource
|
|
81
81
|
form_params = {}
|
82
82
|
|
83
83
|
# http body (model)
|
84
|
-
post_body = @api_client.object_to_http_body(
|
84
|
+
post_body = @api_client.object_to_http_body(create_report_subscription_request)
|
85
85
|
auth_names = []
|
86
86
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
87
87
|
:header_params => header_params,
|
@@ -22,22 +22,22 @@ module CyberSource
|
|
22
22
|
end
|
23
23
|
# Create Adhoc Report
|
24
24
|
# Create a one-time report. You must specify the type of report in reportDefinitionName. For a list of values for reportDefinitionName, see the [Reporting Developer Guide](https://www.cybersource.com/developers/documentation/reporting_and_reconciliation)
|
25
|
-
# @param
|
25
|
+
# @param create_adhoc_report_request Report subscription request payload
|
26
26
|
# @param [Hash] opts the optional parameters
|
27
27
|
# @option opts [String] :organization_id Valid Cybersource Organization Id
|
28
28
|
# @return [nil]
|
29
|
-
def create_report(
|
30
|
-
data, status_code, headers = create_report_with_http_info(
|
29
|
+
def create_report(create_adhoc_report_request, opts = {})
|
30
|
+
data, status_code, headers = create_report_with_http_info(create_adhoc_report_request, opts)
|
31
31
|
return data, status_code, headers
|
32
32
|
end
|
33
33
|
|
34
34
|
# Create Adhoc Report
|
35
35
|
# Create a one-time report. You must specify the type of report in reportDefinitionName. For a list of values for reportDefinitionName, see the [Reporting Developer Guide](https://www.cybersource.com/developers/documentation/reporting_and_reconciliation)
|
36
|
-
# @param
|
36
|
+
# @param create_adhoc_report_request Report subscription request payload
|
37
37
|
# @param [Hash] opts the optional parameters
|
38
38
|
# @option opts [String] :organization_id Valid Cybersource Organization Id
|
39
39
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
40
|
-
def create_report_with_http_info(
|
40
|
+
def create_report_with_http_info(create_adhoc_report_request, opts = {})
|
41
41
|
|
42
42
|
if @api_client.config.debugging
|
43
43
|
begin
|
@@ -47,9 +47,9 @@ module CyberSource
|
|
47
47
|
puts 'Cannot write to log'
|
48
48
|
end
|
49
49
|
end
|
50
|
-
# verify the required parameter '
|
51
|
-
if @api_client.config.client_side_validation &&
|
52
|
-
fail ArgumentError, "Missing the required parameter '
|
50
|
+
# verify the required parameter 'create_adhoc_report_request' is set
|
51
|
+
if @api_client.config.client_side_validation && create_adhoc_report_request.nil?
|
52
|
+
fail ArgumentError, "Missing the required parameter 'create_adhoc_report_request' when calling ReportsApi.create_report"
|
53
53
|
end
|
54
54
|
if @api_client.config.client_side_validation && !opts[:'organization_id'].nil? && opts[:'organization_id'].to_s.length > 32
|
55
55
|
fail ArgumentError, 'invalid value for "opts[:"organization_id"]" when calling ReportsApi.create_report, the character length must be smaller than or equal to 32.'
|
@@ -81,7 +81,7 @@ module CyberSource
|
|
81
81
|
form_params = {}
|
82
82
|
|
83
83
|
# http body (model)
|
84
|
-
post_body = @api_client.object_to_http_body(
|
84
|
+
post_body = @api_client.object_to_http_body(create_adhoc_report_request)
|
85
85
|
auth_names = []
|
86
86
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
87
87
|
:header_params => header_params,
|
@@ -58,7 +58,7 @@ module CyberSource
|
|
58
58
|
# header parameters
|
59
59
|
header_params = {}
|
60
60
|
# HTTP header 'Accept' (if needed)
|
61
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
61
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json;charset=utf-8'])
|
62
62
|
# HTTP header 'Content-Type'
|
63
63
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
|
64
64
|
|
@@ -20,24 +20,20 @@ module CyberSource
|
|
20
20
|
@api_client = api_client
|
21
21
|
@api_client.set_configuration(config)
|
22
22
|
end
|
23
|
-
# Get transaction details for a given batch id
|
23
|
+
# Get transaction details for a given batch id
|
24
24
|
# Provides real-time detailed status information about the transactions that you previously uploaded in the Business Center or processed with the Offline Transaction File Submission service.
|
25
25
|
# @param id The batch id assigned for the template.
|
26
26
|
# @param [Hash] opts the optional parameters
|
27
|
-
# @option opts [Date] :upload_date Date in which the original batch file was uploaded. Date must be in ISO-8601 format. Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd
|
28
|
-
# @option opts [String] :status Allows you to filter by rejected response. Valid values: - Rejected
|
29
27
|
# @return [nil]
|
30
28
|
def get_transaction_batch_details(id, opts = {})
|
31
29
|
data, status_code, headers = get_transaction_batch_details_with_http_info(id, opts)
|
32
30
|
return data, status_code, headers
|
33
31
|
end
|
34
32
|
|
35
|
-
# Get transaction details for a given batch id
|
33
|
+
# Get transaction details for a given batch id
|
36
34
|
# Provides real-time detailed status information about the transactions that you previously uploaded in the Business Center or processed with the Offline Transaction File Submission service.
|
37
35
|
# @param id The batch id assigned for the template.
|
38
36
|
# @param [Hash] opts the optional parameters
|
39
|
-
# @option opts [Date] :upload_date Date in which the original batch file was uploaded. Date must be in ISO-8601 format. Please refer the following link to know more about ISO 8601 format.[Rfc Date Format](https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14) **Example date format:** - yyyy-MM-dd
|
40
|
-
# @option opts [String] :status Allows you to filter by rejected response. Valid values: - Rejected
|
41
37
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
42
38
|
def get_transaction_batch_details_with_http_info(id, opts = {})
|
43
39
|
|
@@ -58,8 +54,6 @@ module CyberSource
|
|
58
54
|
|
59
55
|
# query parameters
|
60
56
|
query_params = {}
|
61
|
-
query_params[:'uploadDate'] = opts[:'upload_date'] if !opts[:'upload_date'].nil?
|
62
|
-
query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
|
63
57
|
|
64
58
|
# header parameters
|
65
59
|
header_params = {}
|
@@ -14,23 +14,28 @@ require 'date'
|
|
14
14
|
|
15
15
|
module CyberSource
|
16
16
|
class Error
|
17
|
-
attr_accessor :
|
17
|
+
attr_accessor :type
|
18
18
|
|
19
|
-
|
19
|
+
# The detailed message related to the type stated above.
|
20
|
+
attr_accessor :message
|
21
|
+
|
22
|
+
attr_accessor :details
|
20
23
|
|
21
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
22
25
|
def self.attribute_map
|
23
26
|
{
|
24
|
-
:'
|
25
|
-
:'
|
27
|
+
:'type' => :'type',
|
28
|
+
:'message' => :'message',
|
29
|
+
:'details' => :'details'
|
26
30
|
}
|
27
31
|
end
|
28
32
|
|
29
33
|
# Attribute type mapping.
|
30
34
|
def self.swagger_types
|
31
35
|
{
|
32
|
-
:'
|
33
|
-
:'
|
36
|
+
:'type' => :'String',
|
37
|
+
:'message' => :'String',
|
38
|
+
:'details' => :'Tmsv1instrumentidentifiersDetails'
|
34
39
|
}
|
35
40
|
end
|
36
41
|
|
@@ -42,12 +47,16 @@ module CyberSource
|
|
42
47
|
# convert string to symbol for hash key
|
43
48
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
44
49
|
|
45
|
-
if attributes.has_key?(:'
|
46
|
-
self.
|
50
|
+
if attributes.has_key?(:'type')
|
51
|
+
self.type = attributes[:'type']
|
52
|
+
end
|
53
|
+
|
54
|
+
if attributes.has_key?(:'message')
|
55
|
+
self.message = attributes[:'message']
|
47
56
|
end
|
48
57
|
|
49
|
-
if attributes.has_key?(:'
|
50
|
-
self.
|
58
|
+
if attributes.has_key?(:'details')
|
59
|
+
self.details = attributes[:'details']
|
51
60
|
end
|
52
61
|
end
|
53
62
|
|
@@ -69,8 +78,9 @@ module CyberSource
|
|
69
78
|
def ==(o)
|
70
79
|
return true if self.equal?(o)
|
71
80
|
self.class == o.class &&
|
72
|
-
|
73
|
-
|
81
|
+
type == o.type &&
|
82
|
+
message == o.message &&
|
83
|
+
details == o.details
|
74
84
|
end
|
75
85
|
|
76
86
|
# @see the `==` method
|
@@ -82,7 +92,7 @@ module CyberSource
|
|
82
92
|
# Calculates hash code according to all attributes.
|
83
93
|
# @return [Fixnum] Hash code
|
84
94
|
def hash
|
85
|
-
[
|
95
|
+
[type, message, details].hash
|
86
96
|
end
|
87
97
|
|
88
98
|
# Builds the object from hash
|
@@ -14,27 +14,27 @@ require 'date'
|
|
14
14
|
|
15
15
|
module CyberSource
|
16
16
|
class ErrorLinks
|
17
|
-
attr_accessor :
|
17
|
+
attr_accessor :_next
|
18
18
|
|
19
19
|
attr_accessor :documentation
|
20
20
|
|
21
|
-
attr_accessor :
|
21
|
+
attr_accessor :_self
|
22
22
|
|
23
23
|
# Attribute mapping from ruby-style variable name to JSON key.
|
24
24
|
def self.attribute_map
|
25
25
|
{
|
26
|
-
:'
|
26
|
+
:'_next' => :'next',
|
27
27
|
:'documentation' => :'documentation',
|
28
|
-
:'
|
28
|
+
:'_self' => :'self'
|
29
29
|
}
|
30
30
|
end
|
31
31
|
|
32
32
|
# Attribute type mapping.
|
33
33
|
def self.swagger_types
|
34
34
|
{
|
35
|
-
:'
|
35
|
+
:'_next' => :'Array<InlineResponseDefaultLinksNext>',
|
36
36
|
:'documentation' => :'Array<InlineResponseDefaultLinksNext>',
|
37
|
-
:'
|
37
|
+
:'_self' => :'InlineResponseDefaultLinksNext'
|
38
38
|
}
|
39
39
|
end
|
40
40
|
|
@@ -46,8 +46,10 @@ module CyberSource
|
|
46
46
|
# convert string to symbol for hash key
|
47
47
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
48
48
|
|
49
|
-
if attributes.has_key?(:'
|
50
|
-
|
49
|
+
if attributes.has_key?(:'next')
|
50
|
+
if (value = attributes[:'next']).is_a?(Array)
|
51
|
+
self._next = value
|
52
|
+
end
|
51
53
|
end
|
52
54
|
|
53
55
|
if attributes.has_key?(:'documentation')
|
@@ -56,10 +58,8 @@ module CyberSource
|
|
56
58
|
end
|
57
59
|
end
|
58
60
|
|
59
|
-
if attributes.has_key?(:'
|
60
|
-
|
61
|
-
self._next = value
|
62
|
-
end
|
61
|
+
if attributes.has_key?(:'self')
|
62
|
+
self._self = attributes[:'self']
|
63
63
|
end
|
64
64
|
end
|
65
65
|
|
@@ -81,9 +81,9 @@ module CyberSource
|
|
81
81
|
def ==(o)
|
82
82
|
return true if self.equal?(o)
|
83
83
|
self.class == o.class &&
|
84
|
-
|
84
|
+
_next == o._next &&
|
85
85
|
documentation == o.documentation &&
|
86
|
-
|
86
|
+
_self == o._self
|
87
87
|
end
|
88
88
|
|
89
89
|
# @see the `==` method
|
@@ -95,7 +95,7 @@ module CyberSource
|
|
95
95
|
# Calculates hash code according to all attributes.
|
96
96
|
# @return [Fixnum] Hash code
|
97
97
|
def hash
|
98
|
-
[
|
98
|
+
[_next, documentation, _self].hash
|
99
99
|
end
|
100
100
|
|
101
101
|
# Builds the object from hash
|