cybersource_rest_client 0.0.40 → 0.0.41

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) 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_payment_account_information_card.rb +20 -4
  39. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_merchant_advice.rb +20 -4
  40. data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information_merchant_descriptor.rb +20 -4
  41. data/lib/cybersource_rest_client/models/ptsv2payments_order_information.rb +11 -1
  42. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_invoice_details.rb +20 -4
  43. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_tokenized_card.rb +1 -1
  44. data/lib/cybersource_rest_client/models/ptsv2payments_point_of_sale_information.rb +20 -4
  45. data/lib/cybersource_rest_client/models/ptsv2payments_point_of_sale_information_emv.rb +21 -7
  46. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options.rb +17 -1
  47. data/lib/cybersource_rest_client/models/ptsv2payments_processor_information.rb +13 -4
  48. data/lib/cybersource_rest_client/models/ptsv2payments_processor_information_authorization_options.rb +190 -0
  49. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_point_of_sale_information_emv.rb +0 -2
  50. data/lib/cybersource_rest_client/models/ptsv2paymentsidvoids_order_information.rb +183 -0
  51. data/lib/cybersource_rest_client/models/ptsv2payouts_order_information.rb +14 -4
  52. data/lib/cybersource_rest_client/models/ptsv2payouts_processing_information.rb +13 -4
  53. data/lib/cybersource_rest_client/models/ptsv2payouts_processing_information_funding_options.rb +183 -0
  54. data/lib/cybersource_rest_client/models/ptsv2payouts_processing_information_funding_options_initiator.rb +190 -0
  55. data/lib/cybersource_rest_client/models/ptsv2payouts_sender_information.rb +52 -4
  56. data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information_tokenized_card.rb +1 -1
  57. data/lib/cybersource_rest_client/models/riskv1authentications_payment_information_tokenized_card.rb +1 -1
  58. data/lib/cybersource_rest_client/models/riskv1authenticationsetups_payment_information_tokenized_card.rb +1 -1
  59. data/lib/cybersource_rest_client/models/riskv1decisions_payment_information_tokenized_card.rb +1 -1
  60. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_amount_details.rb +1 -1
  61. data/lib/cybersource_rest_client/models/void_capture_request.rb +13 -4
  62. data/lib/cybersource_rest_client/models/void_credit_request.rb +13 -4
  63. data/lib/cybersource_rest_client/models/void_payment_request.rb +13 -4
  64. data/lib/cybersource_rest_client/models/void_refund_request.rb +13 -4
  65. data/lib/cybersource_rest_client.rb +4 -0
  66. metadata +7 -3
@@ -1,160 +1,160 @@
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 TaxesApi
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
- # Calculate Taxes
24
- # Get tax details for a transaction.
25
- # @param tax_request
26
- # @param [Hash] opts the optional parameters
27
- # @return [VasV2PaymentsPost201Response]
28
- def calculate_tax(tax_request, opts = {})
29
- data, status_code, headers = calculate_tax_with_http_info(tax_request, opts)
30
- return data, status_code, headers
31
- end
32
-
33
- # Calculate Taxes
34
- # Get tax details for a transaction.
35
- # @param tax_request
36
- # @param [Hash] opts the optional parameters
37
- # @return [Array<(VasV2PaymentsPost201Response, Fixnum, Hash)>] VasV2PaymentsPost201Response data, response status code and response headers
38
- def calculate_tax_with_http_info(tax_request, opts = {})
39
-
40
- if @api_client.config.debugging
41
- begin
42
- raise
43
- @api_client.config.logger.debug 'Calling API: TaxesApi.calculate_tax ...'
44
- rescue
45
- puts 'Cannot write to log'
46
- end
47
- end
48
- # verify the required parameter 'tax_request' is set
49
- if @api_client.config.client_side_validation && tax_request.nil?
50
- fail ArgumentError, "Missing the required parameter 'tax_request' when calling TaxesApi.calculate_tax"
51
- end
52
- # resource path
53
- local_var_path = 'vas/v2/tax'
54
-
55
- # query parameters
56
- query_params = {}
57
-
58
- # header parameters
59
- header_params = {}
60
- # HTTP header 'Accept' (if needed)
61
- header_params['Accept'] = @api_client.select_header_accept(['application/hal+json;charset=utf-8'])
62
- # HTTP header 'Content-Type'
63
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
64
-
65
- # form parameters
66
- form_params = {}
67
-
68
- # http body (model)
69
- post_body = @api_client.object_to_http_body(tax_request)
70
- auth_names = []
71
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
72
- :header_params => header_params,
73
- :query_params => query_params,
74
- :form_params => form_params,
75
- :body => post_body,
76
- :auth_names => auth_names,
77
- :return_type => 'VasV2PaymentsPost201Response')
78
- if @api_client.config.debugging
79
- begin
80
- raise
81
- @api_client.config.logger.debug "API called: TaxesApi#calculate_tax\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
82
- rescue
83
- puts 'Cannot write to log'
84
- end
85
- end
86
- return data, status_code, headers
87
- end
88
- # Void Taxes
89
- # Pass the Tax Request ID in the PATCH request to void the committed tax calculation.
90
- # @param void_tax_request
91
- # @param id The tax ID returned from a previous request.
92
- # @param [Hash] opts the optional parameters
93
- # @return [VasV2TaxVoid200Response]
94
- def void_tax(void_tax_request, id, opts = {})
95
- data, status_code, headers = void_tax_with_http_info(void_tax_request, id, opts)
96
- return data, status_code, headers
97
- end
98
-
99
- # Void Taxes
100
- # Pass the Tax Request ID in the PATCH request to void the committed tax calculation.
101
- # @param void_tax_request
102
- # @param id The tax ID returned from a previous request.
103
- # @param [Hash] opts the optional parameters
104
- # @return [Array<(VasV2TaxVoid200Response, Fixnum, Hash)>] VasV2TaxVoid200Response data, response status code and response headers
105
- def void_tax_with_http_info(void_tax_request, id, opts = {})
106
-
107
- if @api_client.config.debugging
108
- begin
109
- raise
110
- @api_client.config.logger.debug 'Calling API: TaxesApi.void_tax ...'
111
- rescue
112
- puts 'Cannot write to log'
113
- end
114
- end
115
- # verify the required parameter 'void_tax_request' is set
116
- if @api_client.config.client_side_validation && void_tax_request.nil?
117
- fail ArgumentError, "Missing the required parameter 'void_tax_request' when calling TaxesApi.void_tax"
118
- end
119
- # verify the required parameter 'id' is set
120
- if @api_client.config.client_side_validation && id.nil?
121
- fail ArgumentError, "Missing the required parameter 'id' when calling TaxesApi.void_tax"
122
- end
123
- # resource path
124
- local_var_path = 'vas/v2/tax/{id}'.sub('{' + 'id' + '}', id.to_s)
125
-
126
- # query parameters
127
- query_params = {}
128
-
129
- # header parameters
130
- header_params = {}
131
- # HTTP header 'Accept' (if needed)
132
- header_params['Accept'] = @api_client.select_header_accept(['application/hal+json;charset=utf-8'])
133
- # HTTP header 'Content-Type'
134
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
135
-
136
- # form parameters
137
- form_params = {}
138
-
139
- # http body (model)
140
- post_body = @api_client.object_to_http_body(void_tax_request)
141
- auth_names = []
142
- data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
143
- :header_params => header_params,
144
- :query_params => query_params,
145
- :form_params => form_params,
146
- :body => post_body,
147
- :auth_names => auth_names,
148
- :return_type => 'VasV2TaxVoid200Response')
149
- if @api_client.config.debugging
150
- begin
151
- raise
152
- @api_client.config.logger.debug "API called: TaxesApi#void_tax\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
153
- rescue
154
- puts 'Cannot write to log'
155
- end
156
- end
157
- return data, status_code, headers
158
- end
159
- end
160
- 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 TaxesApi
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
+ # Calculate Taxes
24
+ # Get tax details for a transaction.
25
+ # @param tax_request
26
+ # @param [Hash] opts the optional parameters
27
+ # @return [VasV2PaymentsPost201Response]
28
+ def calculate_tax(tax_request, opts = {})
29
+ data, status_code, headers = calculate_tax_with_http_info(tax_request, opts)
30
+ return data, status_code, headers
31
+ end
32
+
33
+ # Calculate Taxes
34
+ # Get tax details for a transaction.
35
+ # @param tax_request
36
+ # @param [Hash] opts the optional parameters
37
+ # @return [Array<(VasV2PaymentsPost201Response, Fixnum, Hash)>] VasV2PaymentsPost201Response data, response status code and response headers
38
+ def calculate_tax_with_http_info(tax_request, opts = {})
39
+
40
+ if @api_client.config.debugging
41
+ begin
42
+ raise
43
+ @api_client.config.logger.debug 'Calling API: TaxesApi.calculate_tax ...'
44
+ rescue
45
+ puts 'Cannot write to log'
46
+ end
47
+ end
48
+ # verify the required parameter 'tax_request' is set
49
+ if @api_client.config.client_side_validation && tax_request.nil?
50
+ fail ArgumentError, "Missing the required parameter 'tax_request' when calling TaxesApi.calculate_tax"
51
+ end
52
+ # resource path
53
+ local_var_path = 'vas/v2/tax'
54
+
55
+ # query parameters
56
+ query_params = {}
57
+
58
+ # header parameters
59
+ header_params = {}
60
+ # HTTP header 'Accept' (if needed)
61
+ header_params['Accept'] = @api_client.select_header_accept(['application/hal+json;charset=utf-8'])
62
+ # HTTP header 'Content-Type'
63
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
64
+
65
+ # form parameters
66
+ form_params = {}
67
+
68
+ # http body (model)
69
+ post_body = @api_client.object_to_http_body(tax_request)
70
+ auth_names = []
71
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
72
+ :header_params => header_params,
73
+ :query_params => query_params,
74
+ :form_params => form_params,
75
+ :body => post_body,
76
+ :auth_names => auth_names,
77
+ :return_type => 'VasV2PaymentsPost201Response')
78
+ if @api_client.config.debugging
79
+ begin
80
+ raise
81
+ @api_client.config.logger.debug "API called: TaxesApi#calculate_tax\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
82
+ rescue
83
+ puts 'Cannot write to log'
84
+ end
85
+ end
86
+ return data, status_code, headers
87
+ end
88
+ # Void Taxes
89
+ # Pass the Tax Request ID in the PATCH request to void the committed tax calculation.
90
+ # @param void_tax_request
91
+ # @param id The tax ID returned from a previous request.
92
+ # @param [Hash] opts the optional parameters
93
+ # @return [VasV2TaxVoid200Response]
94
+ def void_tax(void_tax_request, id, opts = {})
95
+ data, status_code, headers = void_tax_with_http_info(void_tax_request, id, opts)
96
+ return data, status_code, headers
97
+ end
98
+
99
+ # Void Taxes
100
+ # Pass the Tax Request ID in the PATCH request to void the committed tax calculation.
101
+ # @param void_tax_request
102
+ # @param id The tax ID returned from a previous request.
103
+ # @param [Hash] opts the optional parameters
104
+ # @return [Array<(VasV2TaxVoid200Response, Fixnum, Hash)>] VasV2TaxVoid200Response data, response status code and response headers
105
+ def void_tax_with_http_info(void_tax_request, id, opts = {})
106
+
107
+ if @api_client.config.debugging
108
+ begin
109
+ raise
110
+ @api_client.config.logger.debug 'Calling API: TaxesApi.void_tax ...'
111
+ rescue
112
+ puts 'Cannot write to log'
113
+ end
114
+ end
115
+ # verify the required parameter 'void_tax_request' is set
116
+ if @api_client.config.client_side_validation && void_tax_request.nil?
117
+ fail ArgumentError, "Missing the required parameter 'void_tax_request' when calling TaxesApi.void_tax"
118
+ end
119
+ # verify the required parameter 'id' is set
120
+ if @api_client.config.client_side_validation && id.nil?
121
+ fail ArgumentError, "Missing the required parameter 'id' when calling TaxesApi.void_tax"
122
+ end
123
+ # resource path
124
+ local_var_path = 'vas/v2/tax/{id}'.sub('{' + 'id' + '}', id.to_s)
125
+
126
+ # query parameters
127
+ query_params = {}
128
+
129
+ # header parameters
130
+ header_params = {}
131
+ # HTTP header 'Accept' (if needed)
132
+ header_params['Accept'] = @api_client.select_header_accept(['application/hal+json;charset=utf-8'])
133
+ # HTTP header 'Content-Type'
134
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
135
+
136
+ # form parameters
137
+ form_params = {}
138
+
139
+ # http body (model)
140
+ post_body = @api_client.object_to_http_body(void_tax_request)
141
+ auth_names = []
142
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
143
+ :header_params => header_params,
144
+ :query_params => query_params,
145
+ :form_params => form_params,
146
+ :body => post_body,
147
+ :auth_names => auth_names,
148
+ :return_type => 'VasV2TaxVoid200Response')
149
+ if @api_client.config.debugging
150
+ begin
151
+ raise
152
+ @api_client.config.logger.debug "API called: TaxesApi#void_tax\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
153
+ rescue
154
+ puts 'Cannot write to log'
155
+ end
156
+ end
157
+ return data, status_code, headers
158
+ end
159
+ end
160
+ end
@@ -1,89 +1,89 @@
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 TokenizationApi
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
- # Tokenize Card
24
- # Returns a token representing the supplied card details. The token replaces card data and can be used as the Subscription ID in the CyberSource Simple Order API or SCMP API. This is an unauthenticated call that you should initiate from your customer’s device or browser.
25
- # @param tokenize_request
26
- # @param [Hash] opts the optional parameters
27
- # @return [FlexV1TokensPost200Response]
28
- def tokenize(tokenize_request, opts = {})
29
- data, status_code, headers = tokenize_with_http_info(tokenize_request, opts)
30
- return data, status_code, headers
31
- end
32
-
33
- # Tokenize Card
34
- # Returns a token representing the supplied card details. The token replaces card data and can be used as the Subscription ID in the CyberSource Simple Order API or SCMP API. This is an unauthenticated call that you should initiate from your customer’s device or browser.
35
- # @param tokenize_request
36
- # @param [Hash] opts the optional parameters
37
- # @return [Array<(FlexV1TokensPost200Response, Fixnum, Hash)>] FlexV1TokensPost200Response data, response status code and response headers
38
- def tokenize_with_http_info(tokenize_request, opts = {})
39
-
40
- if @api_client.config.debugging
41
- begin
42
- raise
43
- @api_client.config.logger.debug 'Calling API: TokenizationApi.tokenize ...'
44
- rescue
45
- puts 'Cannot write to log'
46
- end
47
- end
48
- # verify the required parameter 'tokenize_request' is set
49
- if @api_client.config.client_side_validation && tokenize_request.nil?
50
- fail ArgumentError, "Missing the required parameter 'tokenize_request' when calling TokenizationApi.tokenize"
51
- end
52
- # resource path
53
- local_var_path = 'flex/v1/tokens'
54
-
55
- # query parameters
56
- query_params = {}
57
-
58
- # header parameters
59
- header_params = {}
60
- # HTTP header 'Accept' (if needed)
61
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
62
- # HTTP header 'Content-Type'
63
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
64
-
65
- # form parameters
66
- form_params = {}
67
-
68
- # http body (model)
69
- post_body = @api_client.object_to_http_body(tokenize_request)
70
- auth_names = []
71
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
72
- :header_params => header_params,
73
- :query_params => query_params,
74
- :form_params => form_params,
75
- :body => post_body,
76
- :auth_names => auth_names,
77
- :return_type => 'FlexV1TokensPost200Response')
78
- if @api_client.config.debugging
79
- begin
80
- raise
81
- @api_client.config.logger.debug "API called: TokenizationApi#tokenize\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
82
- rescue
83
- puts 'Cannot write to log'
84
- end
85
- end
86
- return data, status_code, headers
87
- end
88
- end
89
- 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 TokenizationApi
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
+ # Tokenize Card
24
+ # Returns a token representing the supplied card details. The token replaces card data and can be used as the Subscription ID in the CyberSource Simple Order API or SCMP API. This is an unauthenticated call that you should initiate from your customer’s device or browser.
25
+ # @param tokenize_request
26
+ # @param [Hash] opts the optional parameters
27
+ # @return [FlexV1TokensPost200Response]
28
+ def tokenize(tokenize_request, opts = {})
29
+ data, status_code, headers = tokenize_with_http_info(tokenize_request, opts)
30
+ return data, status_code, headers
31
+ end
32
+
33
+ # Tokenize Card
34
+ # Returns a token representing the supplied card details. The token replaces card data and can be used as the Subscription ID in the CyberSource Simple Order API or SCMP API. This is an unauthenticated call that you should initiate from your customer’s device or browser.
35
+ # @param tokenize_request
36
+ # @param [Hash] opts the optional parameters
37
+ # @return [Array<(FlexV1TokensPost200Response, Fixnum, Hash)>] FlexV1TokensPost200Response data, response status code and response headers
38
+ def tokenize_with_http_info(tokenize_request, opts = {})
39
+
40
+ if @api_client.config.debugging
41
+ begin
42
+ raise
43
+ @api_client.config.logger.debug 'Calling API: TokenizationApi.tokenize ...'
44
+ rescue
45
+ puts 'Cannot write to log'
46
+ end
47
+ end
48
+ # verify the required parameter 'tokenize_request' is set
49
+ if @api_client.config.client_side_validation && tokenize_request.nil?
50
+ fail ArgumentError, "Missing the required parameter 'tokenize_request' when calling TokenizationApi.tokenize"
51
+ end
52
+ # resource path
53
+ local_var_path = 'flex/v1/tokens'
54
+
55
+ # query parameters
56
+ query_params = {}
57
+
58
+ # header parameters
59
+ header_params = {}
60
+ # HTTP header 'Accept' (if needed)
61
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
62
+ # HTTP header 'Content-Type'
63
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
64
+
65
+ # form parameters
66
+ form_params = {}
67
+
68
+ # http body (model)
69
+ post_body = @api_client.object_to_http_body(tokenize_request)
70
+ auth_names = []
71
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
72
+ :header_params => header_params,
73
+ :query_params => query_params,
74
+ :form_params => form_params,
75
+ :body => post_body,
76
+ :auth_names => auth_names,
77
+ :return_type => 'FlexV1TokensPost200Response')
78
+ if @api_client.config.debugging
79
+ begin
80
+ raise
81
+ @api_client.config.logger.debug "API called: TokenizationApi#tokenize\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
82
+ rescue
83
+ puts 'Cannot write to log'
84
+ end
85
+ end
86
+ return data, status_code, headers
87
+ end
88
+ end
89
+ end
@@ -72,7 +72,11 @@ module CyberSource
72
72
  form_params = {}
73
73
 
74
74
  # http body (model)
75
- post_body = nil
75
+ if 'GET' == 'POST'
76
+ post_body = '{}'
77
+ else
78
+ post_body = nil
79
+ end
76
80
  auth_names = []
77
81
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
78
82
  :header_params => header_params,
@@ -136,7 +140,11 @@ module CyberSource
136
140
  form_params = {}
137
141
 
138
142
  # http body (model)
139
- post_body = nil
143
+ if 'GET' == 'POST'
144
+ post_body = '{}'
145
+ else
146
+ post_body = nil
147
+ end
140
148
  auth_names = []
141
149
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
142
150
  :header_params => header_params,
@@ -209,7 +217,11 @@ module CyberSource
209
217
  form_params = {}
210
218
 
211
219
  # http body (model)
212
- post_body = nil
220
+ if 'GET' == 'POST'
221
+ post_body = '{}'
222
+ else
223
+ post_body = nil
224
+ end
213
225
  auth_names = []
214
226
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
215
227
  :header_params => header_params,
@@ -66,7 +66,11 @@ module CyberSource
66
66
  form_params = {}
67
67
 
68
68
  # http body (model)
69
- post_body = nil
69
+ if 'GET' == 'POST'
70
+ post_body = '{}'
71
+ else
72
+ post_body = nil
73
+ end
70
74
  auth_names = []
71
75
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
72
76
  :header_params => header_params,
@@ -72,7 +72,11 @@ module CyberSource
72
72
  form_params = {}
73
73
 
74
74
  # http body (model)
75
- post_body = nil
75
+ if 'GET' == 'POST'
76
+ post_body = '{}'
77
+ else
78
+ post_body = nil
79
+ end
76
80
  auth_names = []
77
81
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
78
82
  :header_params => header_params,