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,129 +1,133 @@
|
|
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 PaymentBatchSummariesApi
|
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 Payment Batch Summary Data
|
24
|
-
# Scope can be either account/merchant or reseller.
|
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
|
-
# @option opts [String] :roll_up Conditional - RollUp for data for day/week/month. Required while getting breakdown data for a Merchant
|
30
|
-
# @option opts [String] :breakdown Conditional - Breakdown on account_rollup/all_merchant/selected_merchant. Required while getting breakdown data for a Merchant.
|
31
|
-
# @option opts [Integer] :start_day_of_week Optional - Start day of week to breakdown data for weeks in a month
|
32
|
-
# @return [ReportingV3PaymentBatchSummariesGet200Response]
|
33
|
-
def get_payment_batch_summary(start_time, end_time, opts = {})
|
34
|
-
data, status_code, headers = get_payment_batch_summary_with_http_info(start_time, end_time, opts)
|
35
|
-
return data, status_code, headers
|
36
|
-
end
|
37
|
-
|
38
|
-
# Get Payment Batch Summary Data
|
39
|
-
# Scope can be either account/merchant or reseller.
|
40
|
-
# @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)
|
41
|
-
# @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)
|
42
|
-
# @param [Hash] opts the optional parameters
|
43
|
-
# @option opts [String] :organization_id Valid Organization Id
|
44
|
-
# @option opts [String] :roll_up Conditional - RollUp for data for day/week/month. Required while getting breakdown data for a Merchant
|
45
|
-
# @option opts [String] :breakdown Conditional - Breakdown on account_rollup/all_merchant/selected_merchant. Required while getting breakdown data for a Merchant.
|
46
|
-
# @option opts [Integer] :start_day_of_week Optional - Start day of week to breakdown data for weeks in a month
|
47
|
-
# @return [Array<(ReportingV3PaymentBatchSummariesGet200Response, Fixnum, Hash)>] ReportingV3PaymentBatchSummariesGet200Response data, response status code and response headers
|
48
|
-
def get_payment_batch_summary_with_http_info(start_time, end_time, opts = {})
|
49
|
-
|
50
|
-
if @api_client.config.debugging
|
51
|
-
begin
|
52
|
-
raise
|
53
|
-
@api_client.config.logger.debug 'Calling API: PaymentBatchSummariesApi.get_payment_batch_summary ...'
|
54
|
-
rescue
|
55
|
-
puts 'Cannot write to log'
|
56
|
-
end
|
57
|
-
end
|
58
|
-
# verify the required parameter 'start_time' is set
|
59
|
-
if @api_client.config.client_side_validation && start_time.nil?
|
60
|
-
fail ArgumentError, "Missing the required parameter 'start_time' when calling PaymentBatchSummariesApi.get_payment_batch_summary"
|
61
|
-
end
|
62
|
-
# verify the required parameter 'end_time' is set
|
63
|
-
if @api_client.config.client_side_validation && end_time.nil?
|
64
|
-
fail ArgumentError, "Missing the required parameter 'end_time' when calling PaymentBatchSummariesApi.get_payment_batch_summary"
|
65
|
-
end
|
66
|
-
if @api_client.config.client_side_validation && !opts[:'organization_id'].nil? && opts[:'organization_id'].to_s.length > 32
|
67
|
-
fail ArgumentError, 'invalid value for "opts[:"organization_id"]" when calling PaymentBatchSummariesApi.get_payment_batch_summary, the character length must be smaller than or equal to 32.'
|
68
|
-
end
|
69
|
-
|
70
|
-
if @api_client.config.client_side_validation && !opts[:'organization_id'].nil? && opts[:'organization_id'].to_s.length < 1
|
71
|
-
fail ArgumentError, 'invalid value for "opts[:"organization_id"]" when calling PaymentBatchSummariesApi.get_payment_batch_summary, the character length must be great than or equal to 1.'
|
72
|
-
end
|
73
|
-
|
74
|
-
#if @api_client.config.client_side_validation && !opts[:'organization_id'].nil? && opts[:'organization_id'] !~ Regexp.new(/[a-zA-Z0-9-_]+/)
|
75
|
-
#fail ArgumentError, "invalid value for 'opts[:\"organization_id\"]' when calling PaymentBatchSummariesApi.get_payment_batch_summary, must conform to the pattern /[a-zA-Z0-9-_]+/."
|
76
|
-
#end
|
77
|
-
|
78
|
-
if @api_client.config.client_side_validation && !opts[:'start_day_of_week'].nil? && opts[:'start_day_of_week'] > 7
|
79
|
-
fail ArgumentError, 'invalid value for "opts[:"start_day_of_week"]" when calling PaymentBatchSummariesApi.get_payment_batch_summary, must be smaller than or equal to 7.'
|
80
|
-
end
|
81
|
-
|
82
|
-
if @api_client.config.client_side_validation && !opts[:'start_day_of_week'].nil? && opts[:'start_day_of_week'] < 1
|
83
|
-
fail ArgumentError, 'invalid value for "opts[:"start_day_of_week"]" when calling PaymentBatchSummariesApi.get_payment_batch_summary, must be greater than or equal to 1.'
|
84
|
-
end
|
85
|
-
|
86
|
-
# resource path
|
87
|
-
local_var_path = 'reporting/v3/payment-batch-summaries'
|
88
|
-
|
89
|
-
# query parameters
|
90
|
-
query_params = {}
|
91
|
-
query_params[:'startTime'] = start_time
|
92
|
-
query_params[:'endTime'] = end_time
|
93
|
-
query_params[:'organizationId'] = opts[:'organization_id'] if !opts[:'organization_id'].nil?
|
94
|
-
query_params[:'rollUp'] = opts[:'roll_up'] if !opts[:'roll_up'].nil?
|
95
|
-
query_params[:'breakdown'] = opts[:'breakdown'] if !opts[:'breakdown'].nil?
|
96
|
-
query_params[:'startDayOfWeek'] = opts[:'start_day_of_week'] if !opts[:'start_day_of_week'].nil?
|
97
|
-
|
98
|
-
# header parameters
|
99
|
-
header_params = {}
|
100
|
-
# HTTP header 'Accept' (if needed)
|
101
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/hal+json', 'text/csv', 'application/xml'])
|
102
|
-
# HTTP header 'Content-Type'
|
103
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
|
104
|
-
|
105
|
-
# form parameters
|
106
|
-
form_params = {}
|
107
|
-
|
108
|
-
# http body (model)
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
:
|
117
|
-
:
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
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 PaymentBatchSummariesApi
|
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 Payment Batch Summary Data
|
24
|
+
# Scope can be either account/merchant or reseller.
|
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
|
+
# @option opts [String] :roll_up Conditional - RollUp for data for day/week/month. Required while getting breakdown data for a Merchant
|
30
|
+
# @option opts [String] :breakdown Conditional - Breakdown on account_rollup/all_merchant/selected_merchant. Required while getting breakdown data for a Merchant.
|
31
|
+
# @option opts [Integer] :start_day_of_week Optional - Start day of week to breakdown data for weeks in a month
|
32
|
+
# @return [ReportingV3PaymentBatchSummariesGet200Response]
|
33
|
+
def get_payment_batch_summary(start_time, end_time, opts = {})
|
34
|
+
data, status_code, headers = get_payment_batch_summary_with_http_info(start_time, end_time, opts)
|
35
|
+
return data, status_code, headers
|
36
|
+
end
|
37
|
+
|
38
|
+
# Get Payment Batch Summary Data
|
39
|
+
# Scope can be either account/merchant or reseller.
|
40
|
+
# @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)
|
41
|
+
# @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)
|
42
|
+
# @param [Hash] opts the optional parameters
|
43
|
+
# @option opts [String] :organization_id Valid Organization Id
|
44
|
+
# @option opts [String] :roll_up Conditional - RollUp for data for day/week/month. Required while getting breakdown data for a Merchant
|
45
|
+
# @option opts [String] :breakdown Conditional - Breakdown on account_rollup/all_merchant/selected_merchant. Required while getting breakdown data for a Merchant.
|
46
|
+
# @option opts [Integer] :start_day_of_week Optional - Start day of week to breakdown data for weeks in a month
|
47
|
+
# @return [Array<(ReportingV3PaymentBatchSummariesGet200Response, Fixnum, Hash)>] ReportingV3PaymentBatchSummariesGet200Response data, response status code and response headers
|
48
|
+
def get_payment_batch_summary_with_http_info(start_time, end_time, opts = {})
|
49
|
+
|
50
|
+
if @api_client.config.debugging
|
51
|
+
begin
|
52
|
+
raise
|
53
|
+
@api_client.config.logger.debug 'Calling API: PaymentBatchSummariesApi.get_payment_batch_summary ...'
|
54
|
+
rescue
|
55
|
+
puts 'Cannot write to log'
|
56
|
+
end
|
57
|
+
end
|
58
|
+
# verify the required parameter 'start_time' is set
|
59
|
+
if @api_client.config.client_side_validation && start_time.nil?
|
60
|
+
fail ArgumentError, "Missing the required parameter 'start_time' when calling PaymentBatchSummariesApi.get_payment_batch_summary"
|
61
|
+
end
|
62
|
+
# verify the required parameter 'end_time' is set
|
63
|
+
if @api_client.config.client_side_validation && end_time.nil?
|
64
|
+
fail ArgumentError, "Missing the required parameter 'end_time' when calling PaymentBatchSummariesApi.get_payment_batch_summary"
|
65
|
+
end
|
66
|
+
if @api_client.config.client_side_validation && !opts[:'organization_id'].nil? && opts[:'organization_id'].to_s.length > 32
|
67
|
+
fail ArgumentError, 'invalid value for "opts[:"organization_id"]" when calling PaymentBatchSummariesApi.get_payment_batch_summary, the character length must be smaller than or equal to 32.'
|
68
|
+
end
|
69
|
+
|
70
|
+
if @api_client.config.client_side_validation && !opts[:'organization_id'].nil? && opts[:'organization_id'].to_s.length < 1
|
71
|
+
fail ArgumentError, 'invalid value for "opts[:"organization_id"]" when calling PaymentBatchSummariesApi.get_payment_batch_summary, the character length must be great than or equal to 1.'
|
72
|
+
end
|
73
|
+
|
74
|
+
#if @api_client.config.client_side_validation && !opts[:'organization_id'].nil? && opts[:'organization_id'] !~ Regexp.new(/[a-zA-Z0-9-_]+/)
|
75
|
+
#fail ArgumentError, "invalid value for 'opts[:\"organization_id\"]' when calling PaymentBatchSummariesApi.get_payment_batch_summary, must conform to the pattern /[a-zA-Z0-9-_]+/."
|
76
|
+
#end
|
77
|
+
|
78
|
+
if @api_client.config.client_side_validation && !opts[:'start_day_of_week'].nil? && opts[:'start_day_of_week'] > 7
|
79
|
+
fail ArgumentError, 'invalid value for "opts[:"start_day_of_week"]" when calling PaymentBatchSummariesApi.get_payment_batch_summary, must be smaller than or equal to 7.'
|
80
|
+
end
|
81
|
+
|
82
|
+
if @api_client.config.client_side_validation && !opts[:'start_day_of_week'].nil? && opts[:'start_day_of_week'] < 1
|
83
|
+
fail ArgumentError, 'invalid value for "opts[:"start_day_of_week"]" when calling PaymentBatchSummariesApi.get_payment_batch_summary, must be greater than or equal to 1.'
|
84
|
+
end
|
85
|
+
|
86
|
+
# resource path
|
87
|
+
local_var_path = 'reporting/v3/payment-batch-summaries'
|
88
|
+
|
89
|
+
# query parameters
|
90
|
+
query_params = {}
|
91
|
+
query_params[:'startTime'] = start_time
|
92
|
+
query_params[:'endTime'] = end_time
|
93
|
+
query_params[:'organizationId'] = opts[:'organization_id'] if !opts[:'organization_id'].nil?
|
94
|
+
query_params[:'rollUp'] = opts[:'roll_up'] if !opts[:'roll_up'].nil?
|
95
|
+
query_params[:'breakdown'] = opts[:'breakdown'] if !opts[:'breakdown'].nil?
|
96
|
+
query_params[:'startDayOfWeek'] = opts[:'start_day_of_week'] if !opts[:'start_day_of_week'].nil?
|
97
|
+
|
98
|
+
# header parameters
|
99
|
+
header_params = {}
|
100
|
+
# HTTP header 'Accept' (if needed)
|
101
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/hal+json', 'text/csv', 'application/xml'])
|
102
|
+
# HTTP header 'Content-Type'
|
103
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
|
104
|
+
|
105
|
+
# form parameters
|
106
|
+
form_params = {}
|
107
|
+
|
108
|
+
# http body (model)
|
109
|
+
if 'GET' == 'POST'
|
110
|
+
post_body = '{}'
|
111
|
+
else
|
112
|
+
post_body = nil
|
113
|
+
end
|
114
|
+
auth_names = []
|
115
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
116
|
+
:header_params => header_params,
|
117
|
+
:query_params => query_params,
|
118
|
+
:form_params => form_params,
|
119
|
+
:body => post_body,
|
120
|
+
:auth_names => auth_names,
|
121
|
+
:return_type => 'ReportingV3PaymentBatchSummariesGet200Response')
|
122
|
+
if @api_client.config.debugging
|
123
|
+
begin
|
124
|
+
raise
|
125
|
+
@api_client.config.logger.debug "API called: PaymentBatchSummariesApi#get_payment_batch_summary\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
126
|
+
rescue
|
127
|
+
puts 'Cannot write to log'
|
128
|
+
end
|
129
|
+
end
|
130
|
+
return data, status_code, headers
|
131
|
+
end
|
132
|
+
end
|
133
|
+
end
|
@@ -83,7 +83,11 @@ module CyberSource
|
|
83
83
|
form_params = {}
|
84
84
|
|
85
85
|
# http body (model)
|
86
|
-
|
86
|
+
if 'DELETE' == 'POST'
|
87
|
+
post_body = '{}'
|
88
|
+
else
|
89
|
+
post_body = nil
|
90
|
+
end
|
87
91
|
auth_names = []
|
88
92
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
89
93
|
:header_params => header_params,
|
@@ -164,7 +168,11 @@ module CyberSource
|
|
164
168
|
form_params = {}
|
165
169
|
|
166
170
|
# http body (model)
|
167
|
-
|
171
|
+
if 'GET' == 'POST'
|
172
|
+
post_body = '{}'
|
173
|
+
else
|
174
|
+
post_body = nil
|
175
|
+
end
|
168
176
|
auth_names = []
|
169
177
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
170
178
|
:header_params => header_params,
|
@@ -112,7 +112,11 @@ module CyberSource
|
|
112
112
|
form_params = {}
|
113
113
|
|
114
114
|
# http body (model)
|
115
|
-
|
115
|
+
if 'GET' == 'POST'
|
116
|
+
post_body = '{}'
|
117
|
+
else
|
118
|
+
post_body = nil
|
119
|
+
end
|
116
120
|
auth_names = []
|
117
121
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
118
122
|
:header_params => header_params,
|
@@ -87,7 +87,11 @@ module CyberSource
|
|
87
87
|
form_params = {}
|
88
88
|
|
89
89
|
# http body (model)
|
90
|
-
|
90
|
+
if 'GET' == 'POST'
|
91
|
+
post_body = '{}'
|
92
|
+
else
|
93
|
+
post_body = nil
|
94
|
+
end
|
91
95
|
auth_names = []
|
92
96
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
93
97
|
:header_params => header_params,
|
@@ -164,7 +168,11 @@ module CyberSource
|
|
164
168
|
form_params = {}
|
165
169
|
|
166
170
|
# http body (model)
|
167
|
-
|
171
|
+
if 'GET' == 'POST'
|
172
|
+
post_body = '{}'
|
173
|
+
else
|
174
|
+
post_body = nil
|
175
|
+
end
|
168
176
|
auth_names = []
|
169
177
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
170
178
|
:header_params => header_params,
|
@@ -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,
|
@@ -251,7 +251,11 @@ module CyberSource
|
|
251
251
|
form_params = {}
|
252
252
|
|
253
253
|
# http body (model)
|
254
|
-
|
254
|
+
if 'DELETE' == 'POST'
|
255
|
+
post_body = '{}'
|
256
|
+
else
|
257
|
+
post_body = nil
|
258
|
+
end
|
255
259
|
auth_names = []
|
256
260
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
257
261
|
:header_params => header_params,
|
@@ -324,7 +328,11 @@ module CyberSource
|
|
324
328
|
form_params = {}
|
325
329
|
|
326
330
|
# http body (model)
|
327
|
-
|
331
|
+
if 'GET' == 'POST'
|
332
|
+
post_body = '{}'
|
333
|
+
else
|
334
|
+
post_body = nil
|
335
|
+
end
|
328
336
|
auth_names = []
|
329
337
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
330
338
|
:header_params => header_params,
|
@@ -416,7 +424,11 @@ module CyberSource
|
|
416
424
|
form_params = {}
|
417
425
|
|
418
426
|
# http body (model)
|
419
|
-
|
427
|
+
if 'GET' == 'POST'
|
428
|
+
post_body = '{}'
|
429
|
+
else
|
430
|
+
post_body = nil
|
431
|
+
end
|
420
432
|
auth_names = []
|
421
433
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
422
434
|
:header_params => header_params,
|
@@ -160,7 +160,11 @@ module CyberSource
|
|
160
160
|
form_params = {}
|
161
161
|
|
162
162
|
# http body (model)
|
163
|
-
|
163
|
+
if 'GET' == 'POST'
|
164
|
+
post_body = '{}'
|
165
|
+
else
|
166
|
+
post_body = nil
|
167
|
+
end
|
164
168
|
auth_names = []
|
165
169
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
166
170
|
:header_params => header_params,
|
@@ -270,7 +274,11 @@ module CyberSource
|
|
270
274
|
form_params = {}
|
271
275
|
|
272
276
|
# http body (model)
|
273
|
-
|
277
|
+
if 'GET' == 'POST'
|
278
|
+
post_body = '{}'
|
279
|
+
else
|
280
|
+
post_body = nil
|
281
|
+
end
|
274
282
|
auth_names = []
|
275
283
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
276
284
|
:header_params => header_params,
|