cybersource_rest_client 0.0.40 → 0.0.44
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/logging/sensitive_logging.rb +7 -4
- data/lib/cybersource_rest_client/api/asymmetric_key_management_api.rb +223 -219
- data/lib/cybersource_rest_client/api/chargeback_details_api.rb +116 -112
- data/lib/cybersource_rest_client/api/chargeback_summaries_api.rb +116 -112
- data/lib/cybersource_rest_client/api/conversion_details_api.rb +5 -1
- data/lib/cybersource_rest_client/api/customer_api.rb +368 -360
- data/lib/cybersource_rest_client/api/customer_payment_instrument_api.rb +530 -518
- data/lib/cybersource_rest_client/api/customer_shipping_address_api.rb +530 -518
- data/lib/cybersource_rest_client/api/download_dtd_api.rb +92 -88
- data/lib/cybersource_rest_client/api/download_xsd_api.rb +92 -88
- data/lib/cybersource_rest_client/api/instrument_identifier_api.rb +15 -3
- data/lib/cybersource_rest_client/api/interchange_clearing_level_details_api.rb +116 -112
- data/lib/cybersource_rest_client/api/invoice_settings_api.rb +152 -148
- data/lib/cybersource_rest_client/api/invoices_api.rb +447 -431
- data/lib/cybersource_rest_client/api/net_fundings_api.rb +5 -1
- data/lib/cybersource_rest_client/api/notification_of_changes_api.rb +5 -1
- data/lib/cybersource_rest_client/api/payer_authentication_api.rb +219 -219
- data/lib/cybersource_rest_client/api/payment_batch_summaries_api.rb +133 -129
- data/lib/cybersource_rest_client/api/payment_instrument_api.rb +10 -2
- data/lib/cybersource_rest_client/api/purchase_and_refund_details_api.rb +5 -1
- data/lib/cybersource_rest_client/api/report_definitions_api.rb +10 -2
- data/lib/cybersource_rest_client/api/report_downloads_api.rb +5 -1
- data/lib/cybersource_rest_client/api/report_subscriptions_api.rb +15 -3
- data/lib/cybersource_rest_client/api/reports_api.rb +10 -2
- data/lib/cybersource_rest_client/api/retrieval_details_api.rb +116 -112
- data/lib/cybersource_rest_client/api/retrieval_summaries_api.rb +116 -112
- data/lib/cybersource_rest_client/api/search_transactions_api.rb +5 -1
- data/lib/cybersource_rest_client/api/secure_file_share_api.rb +206 -198
- data/lib/cybersource_rest_client/api/symmetric_key_management_api.rb +5 -1
- data/lib/cybersource_rest_client/api/taxes_api.rb +160 -160
- data/lib/cybersource_rest_client/api/tokenization_api.rb +89 -89
- data/lib/cybersource_rest_client/api/transaction_batches_api.rb +15 -3
- data/lib/cybersource_rest_client/api/transaction_details_api.rb +5 -1
- data/lib/cybersource_rest_client/api/user_management_api.rb +5 -1
- data/lib/cybersource_rest_client/api/user_management_search_api.rb +89 -89
- data/lib/cybersource_rest_client/api/verification_api.rb +154 -154
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response.rb +10 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_consumer_authentication_information.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_issuer_information.rb +20 -4
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_account_information_card.rb +20 -4
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_insights_information.rb +183 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_insights_information_response_insights.rb +206 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_merchant_advice.rb +20 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_consumer_authentication_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information_merchant_descriptor.rb +20 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information.rb +11 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_invoice_details.rb +20 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_card.rb +20 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_tokenized_card.rb +22 -6
- data/lib/cybersource_rest_client/models/ptsv2payments_point_of_sale_information.rb +20 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_point_of_sale_information_emv.rb +15 -7
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information.rb +14 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options.rb +17 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options_initiator.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_processor_information.rb +13 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_processor_information_authorization_options.rb +190 -0
- data/lib/cybersource_rest_client/models/ptsv2paymentsid_processing_information_authorization_options_initiator.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_point_of_sale_information_emv.rb +0 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsidvoids_order_information.rb +183 -0
- data/lib/cybersource_rest_client/models/ptsv2payouts_order_information.rb +14 -4
- data/lib/cybersource_rest_client/models/ptsv2payouts_processing_information.rb +13 -4
- data/lib/cybersource_rest_client/models/ptsv2payouts_processing_information_funding_options.rb +183 -0
- data/lib/cybersource_rest_client/models/ptsv2payouts_processing_information_funding_options_initiator.rb +190 -0
- data/lib/cybersource_rest_client/models/ptsv2payouts_sender_information.rb +52 -4
- data/lib/cybersource_rest_client/models/reporting_v3_chargeback_details_get200_response_chargeback_details.rb +14 -4
- data/lib/cybersource_rest_client/models/risk_v1_authentication_results_post201_response_consumer_authentication_information.rb +49 -1
- data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response_consumer_authentication_information.rb +44 -2
- data/lib/cybersource_rest_client/models/riskv1authenticationresults_consumer_authentication_information.rb +35 -3
- data/lib/cybersource_rest_client/models/{tss_v2_transactions_post201_response__embedded_device_information.rb → riskv1authenticationresults_device_information.rb} +1 -1
- data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information_tokenized_card.rb +1 -1
- data/lib/cybersource_rest_client/models/riskv1authentications_payment_information_tokenized_card.rb +61 -2
- data/lib/cybersource_rest_client/models/riskv1authenticationsetups_payment_information_tokenized_card.rb +1 -1
- data/lib/cybersource_rest_client/models/riskv1decisions_consumer_authentication_information.rb +13 -3
- data/lib/cybersource_rest_client/models/riskv1decisions_payment_information_tokenized_card.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response.rb +10 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_amount_details.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_customer.rb +1 -7
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information_authorization_options.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information_authorization_options_initiator.rb +213 -0
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information.rb +14 -5
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information_bank.rb +183 -0
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information_bank_account.rb +194 -0
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information_customer.rb +184 -0
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_transaction_summaries.rb +1 -1
- data/lib/cybersource_rest_client/models/validate_request.rb +13 -4
- 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
- data/lib/cybersource_rest_client.rb +11 -1
- metadata +14 -4
@@ -1,112 +1,116 @@
|
|
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.2.3
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'uri'
|
14
|
-
|
15
|
-
module CyberSource
|
16
|
-
class ChargebackDetailsApi
|
17
|
-
attr_accessor :api_client
|
18
|
-
|
19
|
-
def initialize(api_client = ApiClient.default, config)
|
20
|
-
@api_client = api_client
|
21
|
-
@api_client.set_configuration(config)
|
22
|
-
end
|
23
|
-
# Get Chargeback Details
|
24
|
-
# Chargeback Detail Report Description
|
25
|
-
# @param start_time Valid report Start Time 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'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z)
|
26
|
-
# @param end_time Valid report End Time 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'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z)
|
27
|
-
# @param [Hash] opts the optional parameters
|
28
|
-
# @option opts [String] :organization_id Valid Organization Id
|
29
|
-
# @return [ReportingV3ChargebackDetailsGet200Response]
|
30
|
-
def get_chargeback_details(start_time, end_time, opts = {})
|
31
|
-
data, status_code, headers = get_chargeback_details_with_http_info(start_time, end_time, opts)
|
32
|
-
return data, status_code, headers
|
33
|
-
end
|
34
|
-
|
35
|
-
# Get Chargeback Details
|
36
|
-
# Chargeback Detail Report Description
|
37
|
-
# @param start_time Valid report Start Time 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'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z)
|
38
|
-
# @param end_time Valid report End Time 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'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z)
|
39
|
-
# @param [Hash] opts the optional parameters
|
40
|
-
# @option opts [String] :organization_id Valid Organization Id
|
41
|
-
# @return [Array<(ReportingV3ChargebackDetailsGet200Response, Fixnum, Hash)>] ReportingV3ChargebackDetailsGet200Response data, response status code and response headers
|
42
|
-
def get_chargeback_details_with_http_info(start_time, end_time, opts = {})
|
43
|
-
|
44
|
-
if @api_client.config.debugging
|
45
|
-
begin
|
46
|
-
raise
|
47
|
-
@api_client.config.logger.debug 'Calling API: ChargebackDetailsApi.get_chargeback_details ...'
|
48
|
-
rescue
|
49
|
-
puts 'Cannot write to log'
|
50
|
-
end
|
51
|
-
end
|
52
|
-
# verify the required parameter 'start_time' is set
|
53
|
-
if @api_client.config.client_side_validation && start_time.nil?
|
54
|
-
fail ArgumentError, "Missing the required parameter 'start_time' when calling ChargebackDetailsApi.get_chargeback_details"
|
55
|
-
end
|
56
|
-
# verify the required parameter 'end_time' is set
|
57
|
-
if @api_client.config.client_side_validation && end_time.nil?
|
58
|
-
fail ArgumentError, "Missing the required parameter 'end_time' when calling ChargebackDetailsApi.get_chargeback_details"
|
59
|
-
end
|
60
|
-
if @api_client.config.client_side_validation && !opts[:'organization_id'].nil? && opts[:'organization_id'].to_s.length > 32
|
61
|
-
fail ArgumentError, 'invalid value for "opts[:"organization_id"]" when calling ChargebackDetailsApi.get_chargeback_details, the character length must be smaller than or equal to 32.'
|
62
|
-
end
|
63
|
-
|
64
|
-
if @api_client.config.client_side_validation && !opts[:'organization_id'].nil? && opts[:'organization_id'].to_s.length < 1
|
65
|
-
fail ArgumentError, 'invalid value for "opts[:"organization_id"]" when calling ChargebackDetailsApi.get_chargeback_details, the character length must be great than or equal to 1.'
|
66
|
-
end
|
67
|
-
|
68
|
-
#if @api_client.config.client_side_validation && !opts[:'organization_id'].nil? && opts[:'organization_id'] !~ Regexp.new(/[a-zA-Z0-9-_]+/)
|
69
|
-
#fail ArgumentError, "invalid value for 'opts[:\"organization_id\"]' when calling ChargebackDetailsApi.get_chargeback_details, must conform to the pattern /[a-zA-Z0-9-_]+/."
|
70
|
-
#end
|
71
|
-
|
72
|
-
# resource path
|
73
|
-
local_var_path = 'reporting/v3/chargeback-details'
|
74
|
-
|
75
|
-
# query parameters
|
76
|
-
query_params = {}
|
77
|
-
query_params[:'startTime'] = start_time
|
78
|
-
query_params[:'endTime'] = end_time
|
79
|
-
query_params[:'organizationId'] = opts[:'organization_id'] if !opts[:'organization_id'].nil?
|
80
|
-
|
81
|
-
# header parameters
|
82
|
-
header_params = {}
|
83
|
-
# HTTP header 'Accept' (if needed)
|
84
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/hal+json', 'application/xml'])
|
85
|
-
# HTTP header 'Content-Type'
|
86
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
|
87
|
-
|
88
|
-
# form parameters
|
89
|
-
form_params = {}
|
90
|
-
|
91
|
-
# http body (model)
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
:
|
100
|
-
:
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
end
|
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.2.3
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'uri'
|
14
|
+
|
15
|
+
module CyberSource
|
16
|
+
class ChargebackDetailsApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default, config)
|
20
|
+
@api_client = api_client
|
21
|
+
@api_client.set_configuration(config)
|
22
|
+
end
|
23
|
+
# Get Chargeback Details
|
24
|
+
# Chargeback Detail Report Description
|
25
|
+
# @param start_time Valid report Start Time 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'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z)
|
26
|
+
# @param end_time Valid report End Time 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'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z)
|
27
|
+
# @param [Hash] opts the optional parameters
|
28
|
+
# @option opts [String] :organization_id Valid Organization Id
|
29
|
+
# @return [ReportingV3ChargebackDetailsGet200Response]
|
30
|
+
def get_chargeback_details(start_time, end_time, opts = {})
|
31
|
+
data, status_code, headers = get_chargeback_details_with_http_info(start_time, end_time, opts)
|
32
|
+
return data, status_code, headers
|
33
|
+
end
|
34
|
+
|
35
|
+
# Get Chargeback Details
|
36
|
+
# Chargeback Detail Report Description
|
37
|
+
# @param start_time Valid report Start Time 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'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z)
|
38
|
+
# @param end_time Valid report End Time 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'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z)
|
39
|
+
# @param [Hash] opts the optional parameters
|
40
|
+
# @option opts [String] :organization_id Valid Organization Id
|
41
|
+
# @return [Array<(ReportingV3ChargebackDetailsGet200Response, Fixnum, Hash)>] ReportingV3ChargebackDetailsGet200Response data, response status code and response headers
|
42
|
+
def get_chargeback_details_with_http_info(start_time, end_time, opts = {})
|
43
|
+
|
44
|
+
if @api_client.config.debugging
|
45
|
+
begin
|
46
|
+
raise
|
47
|
+
@api_client.config.logger.debug 'Calling API: ChargebackDetailsApi.get_chargeback_details ...'
|
48
|
+
rescue
|
49
|
+
puts 'Cannot write to log'
|
50
|
+
end
|
51
|
+
end
|
52
|
+
# verify the required parameter 'start_time' is set
|
53
|
+
if @api_client.config.client_side_validation && start_time.nil?
|
54
|
+
fail ArgumentError, "Missing the required parameter 'start_time' when calling ChargebackDetailsApi.get_chargeback_details"
|
55
|
+
end
|
56
|
+
# verify the required parameter 'end_time' is set
|
57
|
+
if @api_client.config.client_side_validation && end_time.nil?
|
58
|
+
fail ArgumentError, "Missing the required parameter 'end_time' when calling ChargebackDetailsApi.get_chargeback_details"
|
59
|
+
end
|
60
|
+
if @api_client.config.client_side_validation && !opts[:'organization_id'].nil? && opts[:'organization_id'].to_s.length > 32
|
61
|
+
fail ArgumentError, 'invalid value for "opts[:"organization_id"]" when calling ChargebackDetailsApi.get_chargeback_details, the character length must be smaller than or equal to 32.'
|
62
|
+
end
|
63
|
+
|
64
|
+
if @api_client.config.client_side_validation && !opts[:'organization_id'].nil? && opts[:'organization_id'].to_s.length < 1
|
65
|
+
fail ArgumentError, 'invalid value for "opts[:"organization_id"]" when calling ChargebackDetailsApi.get_chargeback_details, the character length must be great than or equal to 1.'
|
66
|
+
end
|
67
|
+
|
68
|
+
#if @api_client.config.client_side_validation && !opts[:'organization_id'].nil? && opts[:'organization_id'] !~ Regexp.new(/[a-zA-Z0-9-_]+/)
|
69
|
+
#fail ArgumentError, "invalid value for 'opts[:\"organization_id\"]' when calling ChargebackDetailsApi.get_chargeback_details, must conform to the pattern /[a-zA-Z0-9-_]+/."
|
70
|
+
#end
|
71
|
+
|
72
|
+
# resource path
|
73
|
+
local_var_path = 'reporting/v3/chargeback-details'
|
74
|
+
|
75
|
+
# query parameters
|
76
|
+
query_params = {}
|
77
|
+
query_params[:'startTime'] = start_time
|
78
|
+
query_params[:'endTime'] = end_time
|
79
|
+
query_params[:'organizationId'] = opts[:'organization_id'] if !opts[:'organization_id'].nil?
|
80
|
+
|
81
|
+
# header parameters
|
82
|
+
header_params = {}
|
83
|
+
# HTTP header 'Accept' (if needed)
|
84
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/hal+json', 'application/xml'])
|
85
|
+
# HTTP header 'Content-Type'
|
86
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
|
87
|
+
|
88
|
+
# form parameters
|
89
|
+
form_params = {}
|
90
|
+
|
91
|
+
# http body (model)
|
92
|
+
if 'GET' == 'POST'
|
93
|
+
post_body = '{}'
|
94
|
+
else
|
95
|
+
post_body = nil
|
96
|
+
end
|
97
|
+
auth_names = []
|
98
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
99
|
+
:header_params => header_params,
|
100
|
+
:query_params => query_params,
|
101
|
+
:form_params => form_params,
|
102
|
+
:body => post_body,
|
103
|
+
:auth_names => auth_names,
|
104
|
+
:return_type => 'ReportingV3ChargebackDetailsGet200Response')
|
105
|
+
if @api_client.config.debugging
|
106
|
+
begin
|
107
|
+
raise
|
108
|
+
@api_client.config.logger.debug "API called: ChargebackDetailsApi#get_chargeback_details\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
109
|
+
rescue
|
110
|
+
puts 'Cannot write to log'
|
111
|
+
end
|
112
|
+
end
|
113
|
+
return data, status_code, headers
|
114
|
+
end
|
115
|
+
end
|
116
|
+
end
|
@@ -1,112 +1,116 @@
|
|
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.2.3
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'uri'
|
14
|
-
|
15
|
-
module CyberSource
|
16
|
-
class ChargebackSummariesApi
|
17
|
-
attr_accessor :api_client
|
18
|
-
|
19
|
-
def initialize(api_client = ApiClient.default, config)
|
20
|
-
@api_client = api_client
|
21
|
-
@api_client.set_configuration(config)
|
22
|
-
end
|
23
|
-
# Get Chargeback Summaries
|
24
|
-
# Chargeback Summary Report Description
|
25
|
-
# @param start_time Valid report Start Time 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'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z)
|
26
|
-
# @param end_time Valid report End Time 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'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z)
|
27
|
-
# @param [Hash] opts the optional parameters
|
28
|
-
# @option opts [String] :organization_id Valid Organization Id
|
29
|
-
# @return [ReportingV3ChargebackSummariesGet200Response]
|
30
|
-
def get_chargeback_summaries(start_time, end_time, opts = {})
|
31
|
-
data, status_code, headers = get_chargeback_summaries_with_http_info(start_time, end_time, opts)
|
32
|
-
return data, status_code, headers
|
33
|
-
end
|
34
|
-
|
35
|
-
# Get Chargeback Summaries
|
36
|
-
# Chargeback Summary Report Description
|
37
|
-
# @param start_time Valid report Start Time 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'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z)
|
38
|
-
# @param end_time Valid report End Time 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'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z)
|
39
|
-
# @param [Hash] opts the optional parameters
|
40
|
-
# @option opts [String] :organization_id Valid Organization Id
|
41
|
-
# @return [Array<(ReportingV3ChargebackSummariesGet200Response, Fixnum, Hash)>] ReportingV3ChargebackSummariesGet200Response data, response status code and response headers
|
42
|
-
def get_chargeback_summaries_with_http_info(start_time, end_time, opts = {})
|
43
|
-
|
44
|
-
if @api_client.config.debugging
|
45
|
-
begin
|
46
|
-
raise
|
47
|
-
@api_client.config.logger.debug 'Calling API: ChargebackSummariesApi.get_chargeback_summaries ...'
|
48
|
-
rescue
|
49
|
-
puts 'Cannot write to log'
|
50
|
-
end
|
51
|
-
end
|
52
|
-
# verify the required parameter 'start_time' is set
|
53
|
-
if @api_client.config.client_side_validation && start_time.nil?
|
54
|
-
fail ArgumentError, "Missing the required parameter 'start_time' when calling ChargebackSummariesApi.get_chargeback_summaries"
|
55
|
-
end
|
56
|
-
# verify the required parameter 'end_time' is set
|
57
|
-
if @api_client.config.client_side_validation && end_time.nil?
|
58
|
-
fail ArgumentError, "Missing the required parameter 'end_time' when calling ChargebackSummariesApi.get_chargeback_summaries"
|
59
|
-
end
|
60
|
-
if @api_client.config.client_side_validation && !opts[:'organization_id'].nil? && opts[:'organization_id'].to_s.length > 32
|
61
|
-
fail ArgumentError, 'invalid value for "opts[:"organization_id"]" when calling ChargebackSummariesApi.get_chargeback_summaries, the character length must be smaller than or equal to 32.'
|
62
|
-
end
|
63
|
-
|
64
|
-
if @api_client.config.client_side_validation && !opts[:'organization_id'].nil? && opts[:'organization_id'].to_s.length < 1
|
65
|
-
fail ArgumentError, 'invalid value for "opts[:"organization_id"]" when calling ChargebackSummariesApi.get_chargeback_summaries, the character length must be great than or equal to 1.'
|
66
|
-
end
|
67
|
-
|
68
|
-
#if @api_client.config.client_side_validation && !opts[:'organization_id'].nil? && opts[:'organization_id'] !~ Regexp.new(/[a-zA-Z0-9-_]+/)
|
69
|
-
#fail ArgumentError, "invalid value for 'opts[:\"organization_id\"]' when calling ChargebackSummariesApi.get_chargeback_summaries, must conform to the pattern /[a-zA-Z0-9-_]+/."
|
70
|
-
#end
|
71
|
-
|
72
|
-
# resource path
|
73
|
-
local_var_path = 'reporting/v3/chargeback-summaries'
|
74
|
-
|
75
|
-
# query parameters
|
76
|
-
query_params = {}
|
77
|
-
query_params[:'startTime'] = start_time
|
78
|
-
query_params[:'endTime'] = end_time
|
79
|
-
query_params[:'organizationId'] = opts[:'organization_id'] if !opts[:'organization_id'].nil?
|
80
|
-
|
81
|
-
# header parameters
|
82
|
-
header_params = {}
|
83
|
-
# HTTP header 'Accept' (if needed)
|
84
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/hal+json', 'application/xml'])
|
85
|
-
# HTTP header 'Content-Type'
|
86
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
|
87
|
-
|
88
|
-
# form parameters
|
89
|
-
form_params = {}
|
90
|
-
|
91
|
-
# http body (model)
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
:
|
100
|
-
:
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
end
|
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.2.3
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'uri'
|
14
|
+
|
15
|
+
module CyberSource
|
16
|
+
class ChargebackSummariesApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default, config)
|
20
|
+
@api_client = api_client
|
21
|
+
@api_client.set_configuration(config)
|
22
|
+
end
|
23
|
+
# Get Chargeback Summaries
|
24
|
+
# Chargeback Summary Report Description
|
25
|
+
# @param start_time Valid report Start Time 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'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z)
|
26
|
+
# @param end_time Valid report End Time 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'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z)
|
27
|
+
# @param [Hash] opts the optional parameters
|
28
|
+
# @option opts [String] :organization_id Valid Organization Id
|
29
|
+
# @return [ReportingV3ChargebackSummariesGet200Response]
|
30
|
+
def get_chargeback_summaries(start_time, end_time, opts = {})
|
31
|
+
data, status_code, headers = get_chargeback_summaries_with_http_info(start_time, end_time, opts)
|
32
|
+
return data, status_code, headers
|
33
|
+
end
|
34
|
+
|
35
|
+
# Get Chargeback Summaries
|
36
|
+
# Chargeback Summary Report Description
|
37
|
+
# @param start_time Valid report Start Time 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'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z)
|
38
|
+
# @param end_time Valid report End Time 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'T'HH:mm:ss.SSSZ (e.g. 2018-01-01T00:00:00.000Z)
|
39
|
+
# @param [Hash] opts the optional parameters
|
40
|
+
# @option opts [String] :organization_id Valid Organization Id
|
41
|
+
# @return [Array<(ReportingV3ChargebackSummariesGet200Response, Fixnum, Hash)>] ReportingV3ChargebackSummariesGet200Response data, response status code and response headers
|
42
|
+
def get_chargeback_summaries_with_http_info(start_time, end_time, opts = {})
|
43
|
+
|
44
|
+
if @api_client.config.debugging
|
45
|
+
begin
|
46
|
+
raise
|
47
|
+
@api_client.config.logger.debug 'Calling API: ChargebackSummariesApi.get_chargeback_summaries ...'
|
48
|
+
rescue
|
49
|
+
puts 'Cannot write to log'
|
50
|
+
end
|
51
|
+
end
|
52
|
+
# verify the required parameter 'start_time' is set
|
53
|
+
if @api_client.config.client_side_validation && start_time.nil?
|
54
|
+
fail ArgumentError, "Missing the required parameter 'start_time' when calling ChargebackSummariesApi.get_chargeback_summaries"
|
55
|
+
end
|
56
|
+
# verify the required parameter 'end_time' is set
|
57
|
+
if @api_client.config.client_side_validation && end_time.nil?
|
58
|
+
fail ArgumentError, "Missing the required parameter 'end_time' when calling ChargebackSummariesApi.get_chargeback_summaries"
|
59
|
+
end
|
60
|
+
if @api_client.config.client_side_validation && !opts[:'organization_id'].nil? && opts[:'organization_id'].to_s.length > 32
|
61
|
+
fail ArgumentError, 'invalid value for "opts[:"organization_id"]" when calling ChargebackSummariesApi.get_chargeback_summaries, the character length must be smaller than or equal to 32.'
|
62
|
+
end
|
63
|
+
|
64
|
+
if @api_client.config.client_side_validation && !opts[:'organization_id'].nil? && opts[:'organization_id'].to_s.length < 1
|
65
|
+
fail ArgumentError, 'invalid value for "opts[:"organization_id"]" when calling ChargebackSummariesApi.get_chargeback_summaries, the character length must be great than or equal to 1.'
|
66
|
+
end
|
67
|
+
|
68
|
+
#if @api_client.config.client_side_validation && !opts[:'organization_id'].nil? && opts[:'organization_id'] !~ Regexp.new(/[a-zA-Z0-9-_]+/)
|
69
|
+
#fail ArgumentError, "invalid value for 'opts[:\"organization_id\"]' when calling ChargebackSummariesApi.get_chargeback_summaries, must conform to the pattern /[a-zA-Z0-9-_]+/."
|
70
|
+
#end
|
71
|
+
|
72
|
+
# resource path
|
73
|
+
local_var_path = 'reporting/v3/chargeback-summaries'
|
74
|
+
|
75
|
+
# query parameters
|
76
|
+
query_params = {}
|
77
|
+
query_params[:'startTime'] = start_time
|
78
|
+
query_params[:'endTime'] = end_time
|
79
|
+
query_params[:'organizationId'] = opts[:'organization_id'] if !opts[:'organization_id'].nil?
|
80
|
+
|
81
|
+
# header parameters
|
82
|
+
header_params = {}
|
83
|
+
# HTTP header 'Accept' (if needed)
|
84
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/hal+json', 'application/xml'])
|
85
|
+
# HTTP header 'Content-Type'
|
86
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
|
87
|
+
|
88
|
+
# form parameters
|
89
|
+
form_params = {}
|
90
|
+
|
91
|
+
# http body (model)
|
92
|
+
if 'GET' == 'POST'
|
93
|
+
post_body = '{}'
|
94
|
+
else
|
95
|
+
post_body = nil
|
96
|
+
end
|
97
|
+
auth_names = []
|
98
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
99
|
+
:header_params => header_params,
|
100
|
+
:query_params => query_params,
|
101
|
+
:form_params => form_params,
|
102
|
+
:body => post_body,
|
103
|
+
:auth_names => auth_names,
|
104
|
+
:return_type => 'ReportingV3ChargebackSummariesGet200Response')
|
105
|
+
if @api_client.config.debugging
|
106
|
+
begin
|
107
|
+
raise
|
108
|
+
@api_client.config.logger.debug "API called: ChargebackSummariesApi#get_chargeback_summaries\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
109
|
+
rescue
|
110
|
+
puts 'Cannot write to log'
|
111
|
+
end
|
112
|
+
end
|
113
|
+
return data, status_code, headers
|
114
|
+
end
|
115
|
+
end
|
116
|
+
end
|
@@ -89,7 +89,11 @@ module CyberSource
|
|
89
89
|
form_params = {}
|
90
90
|
|
91
91
|
# http body (model)
|
92
|
-
|
92
|
+
if 'GET' == 'POST'
|
93
|
+
post_body = '{}'
|
94
|
+
else
|
95
|
+
post_body = nil
|
96
|
+
end
|
93
97
|
auth_names = []
|
94
98
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
95
99
|
:header_params => header_params,
|