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.
Files changed (92) hide show
  1. checksums.yaml +4 -4
  2. data/lib/AuthenticationSDK/logging/sensitive_logging.rb +7 -4
  3. data/lib/cybersource_rest_client/api/asymmetric_key_management_api.rb +223 -219
  4. data/lib/cybersource_rest_client/api/chargeback_details_api.rb +116 -112
  5. data/lib/cybersource_rest_client/api/chargeback_summaries_api.rb +116 -112
  6. data/lib/cybersource_rest_client/api/conversion_details_api.rb +5 -1
  7. data/lib/cybersource_rest_client/api/customer_api.rb +368 -360
  8. data/lib/cybersource_rest_client/api/customer_payment_instrument_api.rb +530 -518
  9. data/lib/cybersource_rest_client/api/customer_shipping_address_api.rb +530 -518
  10. data/lib/cybersource_rest_client/api/download_dtd_api.rb +92 -88
  11. data/lib/cybersource_rest_client/api/download_xsd_api.rb +92 -88
  12. data/lib/cybersource_rest_client/api/instrument_identifier_api.rb +15 -3
  13. data/lib/cybersource_rest_client/api/interchange_clearing_level_details_api.rb +116 -112
  14. data/lib/cybersource_rest_client/api/invoice_settings_api.rb +152 -148
  15. data/lib/cybersource_rest_client/api/invoices_api.rb +447 -431
  16. data/lib/cybersource_rest_client/api/net_fundings_api.rb +5 -1
  17. data/lib/cybersource_rest_client/api/notification_of_changes_api.rb +5 -1
  18. data/lib/cybersource_rest_client/api/payer_authentication_api.rb +219 -219
  19. data/lib/cybersource_rest_client/api/payment_batch_summaries_api.rb +133 -129
  20. data/lib/cybersource_rest_client/api/payment_instrument_api.rb +10 -2
  21. data/lib/cybersource_rest_client/api/purchase_and_refund_details_api.rb +5 -1
  22. data/lib/cybersource_rest_client/api/report_definitions_api.rb +10 -2
  23. data/lib/cybersource_rest_client/api/report_downloads_api.rb +5 -1
  24. data/lib/cybersource_rest_client/api/report_subscriptions_api.rb +15 -3
  25. data/lib/cybersource_rest_client/api/reports_api.rb +10 -2
  26. data/lib/cybersource_rest_client/api/retrieval_details_api.rb +116 -112
  27. data/lib/cybersource_rest_client/api/retrieval_summaries_api.rb +116 -112
  28. data/lib/cybersource_rest_client/api/search_transactions_api.rb +5 -1
  29. data/lib/cybersource_rest_client/api/secure_file_share_api.rb +206 -198
  30. data/lib/cybersource_rest_client/api/symmetric_key_management_api.rb +5 -1
  31. data/lib/cybersource_rest_client/api/taxes_api.rb +160 -160
  32. data/lib/cybersource_rest_client/api/tokenization_api.rb +89 -89
  33. data/lib/cybersource_rest_client/api/transaction_batches_api.rb +15 -3
  34. data/lib/cybersource_rest_client/api/transaction_details_api.rb +5 -1
  35. data/lib/cybersource_rest_client/api/user_management_api.rb +5 -1
  36. data/lib/cybersource_rest_client/api/user_management_search_api.rb +89 -89
  37. data/lib/cybersource_rest_client/api/verification_api.rb +154 -154
  38. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response.rb +10 -1
  39. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_consumer_authentication_information.rb +1 -1
  40. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_issuer_information.rb +20 -4
  41. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_account_information_card.rb +20 -4
  42. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_insights_information.rb +183 -0
  43. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_insights_information_response_insights.rb +206 -0
  44. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_merchant_advice.rb +20 -4
  45. data/lib/cybersource_rest_client/models/ptsv2payments_consumer_authentication_information.rb +2 -2
  46. data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information_merchant_descriptor.rb +20 -4
  47. data/lib/cybersource_rest_client/models/ptsv2payments_order_information.rb +11 -1
  48. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_invoice_details.rb +20 -4
  49. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_card.rb +20 -4
  50. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_tokenized_card.rb +22 -6
  51. data/lib/cybersource_rest_client/models/ptsv2payments_point_of_sale_information.rb +20 -4
  52. data/lib/cybersource_rest_client/models/ptsv2payments_point_of_sale_information_emv.rb +15 -7
  53. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information.rb +14 -4
  54. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options.rb +17 -1
  55. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options_initiator.rb +2 -2
  56. data/lib/cybersource_rest_client/models/ptsv2payments_processor_information.rb +13 -4
  57. data/lib/cybersource_rest_client/models/ptsv2payments_processor_information_authorization_options.rb +190 -0
  58. data/lib/cybersource_rest_client/models/ptsv2paymentsid_processing_information_authorization_options_initiator.rb +2 -2
  59. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_point_of_sale_information_emv.rb +0 -2
  60. data/lib/cybersource_rest_client/models/ptsv2paymentsidvoids_order_information.rb +183 -0
  61. data/lib/cybersource_rest_client/models/ptsv2payouts_order_information.rb +14 -4
  62. data/lib/cybersource_rest_client/models/ptsv2payouts_processing_information.rb +13 -4
  63. data/lib/cybersource_rest_client/models/ptsv2payouts_processing_information_funding_options.rb +183 -0
  64. data/lib/cybersource_rest_client/models/ptsv2payouts_processing_information_funding_options_initiator.rb +190 -0
  65. data/lib/cybersource_rest_client/models/ptsv2payouts_sender_information.rb +52 -4
  66. data/lib/cybersource_rest_client/models/reporting_v3_chargeback_details_get200_response_chargeback_details.rb +14 -4
  67. data/lib/cybersource_rest_client/models/risk_v1_authentication_results_post201_response_consumer_authentication_information.rb +49 -1
  68. data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response_consumer_authentication_information.rb +44 -2
  69. data/lib/cybersource_rest_client/models/riskv1authenticationresults_consumer_authentication_information.rb +35 -3
  70. data/lib/cybersource_rest_client/models/{tss_v2_transactions_post201_response__embedded_device_information.rb → riskv1authenticationresults_device_information.rb} +1 -1
  71. data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information_tokenized_card.rb +1 -1
  72. data/lib/cybersource_rest_client/models/riskv1authentications_payment_information_tokenized_card.rb +61 -2
  73. data/lib/cybersource_rest_client/models/riskv1authenticationsetups_payment_information_tokenized_card.rb +1 -1
  74. data/lib/cybersource_rest_client/models/riskv1decisions_consumer_authentication_information.rb +13 -3
  75. data/lib/cybersource_rest_client/models/riskv1decisions_payment_information_tokenized_card.rb +1 -1
  76. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response.rb +10 -1
  77. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_amount_details.rb +1 -1
  78. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_customer.rb +1 -7
  79. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information_authorization_options.rb +1 -1
  80. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information_authorization_options_initiator.rb +213 -0
  81. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information.rb +14 -5
  82. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information_bank.rb +183 -0
  83. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information_bank_account.rb +194 -0
  84. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information_customer.rb +184 -0
  85. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_transaction_summaries.rb +1 -1
  86. data/lib/cybersource_rest_client/models/validate_request.rb +13 -4
  87. data/lib/cybersource_rest_client/models/void_capture_request.rb +13 -4
  88. data/lib/cybersource_rest_client/models/void_credit_request.rb +13 -4
  89. data/lib/cybersource_rest_client/models/void_payment_request.rb +13 -4
  90. data/lib/cybersource_rest_client/models/void_refund_request.rb +13 -4
  91. data/lib/cybersource_rest_client.rb +11 -1
  92. 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
- post_body = nil
93
- auth_names = []
94
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
95
- :header_params => header_params,
96
- :query_params => query_params,
97
- :form_params => form_params,
98
- :body => post_body,
99
- :auth_names => auth_names,
100
- :return_type => 'ReportingV3ChargebackDetailsGet200Response')
101
- if @api_client.config.debugging
102
- begin
103
- raise
104
- @api_client.config.logger.debug "API called: ChargebackDetailsApi#get_chargeback_details\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
105
- rescue
106
- puts 'Cannot write to log'
107
- end
108
- end
109
- return data, status_code, headers
110
- end
111
- end
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&#39;T&#39;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&#39;T&#39;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&#39;T&#39;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&#39;T&#39;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&#39;T&#39;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&#39;T&#39;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&#39;T&#39;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&#39;T&#39;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
- post_body = nil
93
- auth_names = []
94
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
95
- :header_params => header_params,
96
- :query_params => query_params,
97
- :form_params => form_params,
98
- :body => post_body,
99
- :auth_names => auth_names,
100
- :return_type => 'ReportingV3ChargebackSummariesGet200Response')
101
- if @api_client.config.debugging
102
- begin
103
- raise
104
- @api_client.config.logger.debug "API called: ChargebackSummariesApi#get_chargeback_summaries\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
105
- rescue
106
- puts 'Cannot write to log'
107
- end
108
- end
109
- return data, status_code, headers
110
- end
111
- end
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&#39;T&#39;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&#39;T&#39;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&#39;T&#39;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&#39;T&#39;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
- post_body = nil
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,