ultracart_api 3.4.1 → 3.4.2
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/README.md +7 -5
- data/docs/ConfigurationApi.md +12 -12
- data/docs/RotatingTransactionGatewayResponse.md +12 -0
- data/docs/{RtgSummary.md → RtgSummaryResponse.md} +1 -1
- data/lib/ultracart_api.rb +2 -1
- data/lib/ultracart_api/api/configuration_api.rb +18 -18
- data/lib/ultracart_api/models/rotating_transaction_gateway_response.rb +221 -0
- data/lib/ultracart_api/models/{rtg_summary.rb → rtg_summary_response.rb} +1 -1
- data/lib/ultracart_api/version.rb +1 -1
- metadata +5 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: dc0bb3e8f01e0b913014542cc888e5426320c836feb2ac9d0d771103986ae078
|
|
4
|
+
data.tar.gz: 6352383d726b674aedcf42f6eabc55bc73ae856fc40add600f4d087f566178a7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fda2dbc5251244f9b0d022d2b9a13e97c4a722230fc27f475384df600d627b425806c9fea538599fffd551d4a768825934cfce65c3a43ff92408347eb689b162
|
|
7
|
+
data.tar.gz: 46852ee26bd0d501c45bd0d2cb1117f00ff40e6cc0f8086f201cef043f9c61b43f2b9403d47b29e2dc85eb3fd24328575ecb8f81013b73ee771cc0a05e259b23
|
data/README.md
CHANGED
|
@@ -7,7 +7,7 @@ UltraCart REST API Version 2
|
|
|
7
7
|
This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
|
|
8
8
|
|
|
9
9
|
- API version: 2.0.0
|
|
10
|
-
- Package version: 3.4.
|
|
10
|
+
- Package version: 3.4.2
|
|
11
11
|
- Build package: io.swagger.codegen.languages.RubyClientCodegen
|
|
12
12
|
For more information, please visit [http://www.ultracart.com](http://www.ultracart.com)
|
|
13
13
|
|
|
@@ -24,15 +24,15 @@ gem build ultracart_api.gemspec
|
|
|
24
24
|
Then either install the gem locally:
|
|
25
25
|
|
|
26
26
|
```shell
|
|
27
|
-
gem install ./ultracart_api-3.4.
|
|
27
|
+
gem install ./ultracart_api-3.4.2.gem
|
|
28
28
|
```
|
|
29
|
-
(for development, run `gem install --dev ./ultracart_api-3.4.
|
|
29
|
+
(for development, run `gem install --dev ./ultracart_api-3.4.2.gem` to install the development dependencies)
|
|
30
30
|
|
|
31
31
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
|
32
32
|
|
|
33
33
|
Finally add this to the Gemfile:
|
|
34
34
|
|
|
35
|
-
gem 'ultracart_api', '~> 3.4.
|
|
35
|
+
gem 'ultracart_api', '~> 3.4.2'
|
|
36
36
|
|
|
37
37
|
### Install from Git
|
|
38
38
|
|
|
@@ -913,12 +913,13 @@ Class | Method | HTTP request | Description
|
|
|
913
913
|
- [UltracartClient::ResponseMetadata](docs/ResponseMetadata.md)
|
|
914
914
|
- [UltracartClient::ResultSet](docs/ResultSet.md)
|
|
915
915
|
- [UltracartClient::RotatingTransactionGateway](docs/RotatingTransactionGateway.md)
|
|
916
|
+
- [UltracartClient::RotatingTransactionGatewayResponse](docs/RotatingTransactionGatewayResponse.md)
|
|
916
917
|
- [UltracartClient::RotatingTransactionGatewaysResponse](docs/RotatingTransactionGatewaysResponse.md)
|
|
917
918
|
- [UltracartClient::RtgCurrency](docs/RtgCurrency.md)
|
|
918
919
|
- [UltracartClient::RtgDayOfMonthRestriction](docs/RtgDayOfMonthRestriction.md)
|
|
919
920
|
- [UltracartClient::RtgDayOfWeekRestriction](docs/RtgDayOfWeekRestriction.md)
|
|
920
|
-
- [UltracartClient::RtgSummary](docs/RtgSummary.md)
|
|
921
921
|
- [UltracartClient::RtgSummaryGateway](docs/RtgSummaryGateway.md)
|
|
922
|
+
- [UltracartClient::RtgSummaryResponse](docs/RtgSummaryResponse.md)
|
|
922
923
|
- [UltracartClient::RtgThemeRestriction](docs/RtgThemeRestriction.md)
|
|
923
924
|
- [UltracartClient::ScreenRecording](docs/ScreenRecording.md)
|
|
924
925
|
- [UltracartClient::ScreenRecordingAdPlatform](docs/ScreenRecordingAdPlatform.md)
|
|
@@ -1098,6 +1099,7 @@ Not every change is committed to every SDK.
|
|
|
1098
1099
|
|
|
1099
1100
|
| Version | Date | Comments |
|
|
1100
1101
|
| --: | :-: | --- |
|
|
1102
|
+
| 3.4.2 | 07/29/2021 | bug fixes for new configuration api |
|
|
1101
1103
|
| 3.4.1 | 07/29/2021 | bug fixes for new configuration api |
|
|
1102
1104
|
| 3.4.0 | 07/29/2021 | added new configuration api (not live yet. sdk only works against development presently) |
|
|
1103
1105
|
| 3.3.2 | 07/16/2021 | sso bug fixes |
|
data/docs/ConfigurationApi.md
CHANGED
|
@@ -122,7 +122,7 @@ Name | Type | Description | Notes
|
|
|
122
122
|
|
|
123
123
|
|
|
124
124
|
# **get_payments_configuration**
|
|
125
|
-
>
|
|
125
|
+
> PaymentsConfigurationResponse get_payments_configuration
|
|
126
126
|
|
|
127
127
|
Retrieve payments configuration
|
|
128
128
|
|
|
@@ -153,7 +153,7 @@ This endpoint does not need any parameter.
|
|
|
153
153
|
|
|
154
154
|
### Return type
|
|
155
155
|
|
|
156
|
-
[**
|
|
156
|
+
[**PaymentsConfigurationResponse**](PaymentsConfigurationResponse.md)
|
|
157
157
|
|
|
158
158
|
### Authorization
|
|
159
159
|
|
|
@@ -167,7 +167,7 @@ This endpoint does not need any parameter.
|
|
|
167
167
|
|
|
168
168
|
|
|
169
169
|
# **get_payments_rotating_gateway**
|
|
170
|
-
>
|
|
170
|
+
> RotatingTransactionGatewayResponse get_payments_rotating_gateway(rtg_oid)
|
|
171
171
|
|
|
172
172
|
Retrieve a rotating transaction gateway
|
|
173
173
|
|
|
@@ -203,7 +203,7 @@ Name | Type | Description | Notes
|
|
|
203
203
|
|
|
204
204
|
### Return type
|
|
205
205
|
|
|
206
|
-
[**
|
|
206
|
+
[**RotatingTransactionGatewayResponse**](RotatingTransactionGatewayResponse.md)
|
|
207
207
|
|
|
208
208
|
### Authorization
|
|
209
209
|
|
|
@@ -217,7 +217,7 @@ Name | Type | Description | Notes
|
|
|
217
217
|
|
|
218
218
|
|
|
219
219
|
# **get_payments_rotating_gateway_by_code**
|
|
220
|
-
>
|
|
220
|
+
> RotatingTransactionGatewayResponse get_payments_rotating_gateway_by_code(code)
|
|
221
221
|
|
|
222
222
|
Retrieve a rotating transaction gateway by code
|
|
223
223
|
|
|
@@ -253,7 +253,7 @@ Name | Type | Description | Notes
|
|
|
253
253
|
|
|
254
254
|
### Return type
|
|
255
255
|
|
|
256
|
-
[**
|
|
256
|
+
[**RotatingTransactionGatewayResponse**](RotatingTransactionGatewayResponse.md)
|
|
257
257
|
|
|
258
258
|
### Authorization
|
|
259
259
|
|
|
@@ -312,7 +312,7 @@ This endpoint does not need any parameter.
|
|
|
312
312
|
|
|
313
313
|
|
|
314
314
|
# **get_payments_rtg_summaries**
|
|
315
|
-
>
|
|
315
|
+
> RtgSummaryResponse get_payments_rtg_summaries
|
|
316
316
|
|
|
317
317
|
Retrieve a summary of rotating transaction gateways
|
|
318
318
|
|
|
@@ -343,7 +343,7 @@ This endpoint does not need any parameter.
|
|
|
343
343
|
|
|
344
344
|
### Return type
|
|
345
345
|
|
|
346
|
-
[**
|
|
346
|
+
[**RtgSummaryResponse**](RtgSummaryResponse.md)
|
|
347
347
|
|
|
348
348
|
### Authorization
|
|
349
349
|
|
|
@@ -402,7 +402,7 @@ This endpoint does not need any parameter.
|
|
|
402
402
|
|
|
403
403
|
|
|
404
404
|
# **insert_rotating_transaction_gateway**
|
|
405
|
-
>
|
|
405
|
+
> RotatingTransactionGatewayResponse insert_rotating_transaction_gateway(rotating_transaction_gateway)
|
|
406
406
|
|
|
407
407
|
Insert a rotating transaction gateway
|
|
408
408
|
|
|
@@ -438,7 +438,7 @@ Name | Type | Description | Notes
|
|
|
438
438
|
|
|
439
439
|
### Return type
|
|
440
440
|
|
|
441
|
-
[**
|
|
441
|
+
[**RotatingTransactionGatewayResponse**](RotatingTransactionGatewayResponse.md)
|
|
442
442
|
|
|
443
443
|
### Authorization
|
|
444
444
|
|
|
@@ -452,7 +452,7 @@ Name | Type | Description | Notes
|
|
|
452
452
|
|
|
453
453
|
|
|
454
454
|
# **migrate_to_rotating_transaction_gateway**
|
|
455
|
-
>
|
|
455
|
+
> RotatingTransactionGatewayResponse migrate_to_rotating_transaction_gateway(code)
|
|
456
456
|
|
|
457
457
|
Migrate a normal transaction gateway to a rotating transaction gateway
|
|
458
458
|
|
|
@@ -488,7 +488,7 @@ Name | Type | Description | Notes
|
|
|
488
488
|
|
|
489
489
|
### Return type
|
|
490
490
|
|
|
491
|
-
[**
|
|
491
|
+
[**RotatingTransactionGatewayResponse**](RotatingTransactionGatewayResponse.md)
|
|
492
492
|
|
|
493
493
|
### Authorization
|
|
494
494
|
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# UltracartClient::RotatingTransactionGatewayResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**error** | [**Error**](Error.md) | | [optional]
|
|
7
|
+
**metadata** | [**ResponseMetadata**](ResponseMetadata.md) | | [optional]
|
|
8
|
+
**rotating_gateway** | [**RotatingTransactionGateway**](RotatingTransactionGateway.md) | | [optional]
|
|
9
|
+
**success** | **BOOLEAN** | Indicates if API call was successful | [optional]
|
|
10
|
+
**warning** | [**Warning**](Warning.md) | | [optional]
|
|
11
|
+
|
|
12
|
+
|
data/lib/ultracart_api.rb
CHANGED
|
@@ -517,12 +517,13 @@ require 'ultracart_api/models/register_affiliate_click_response'
|
|
|
517
517
|
require 'ultracart_api/models/response_metadata'
|
|
518
518
|
require 'ultracart_api/models/result_set'
|
|
519
519
|
require 'ultracart_api/models/rotating_transaction_gateway'
|
|
520
|
+
require 'ultracart_api/models/rotating_transaction_gateway_response'
|
|
520
521
|
require 'ultracart_api/models/rotating_transaction_gateways_response'
|
|
521
522
|
require 'ultracart_api/models/rtg_currency'
|
|
522
523
|
require 'ultracart_api/models/rtg_day_of_month_restriction'
|
|
523
524
|
require 'ultracart_api/models/rtg_day_of_week_restriction'
|
|
524
|
-
require 'ultracart_api/models/rtg_summary'
|
|
525
525
|
require 'ultracart_api/models/rtg_summary_gateway'
|
|
526
|
+
require 'ultracart_api/models/rtg_summary_response'
|
|
526
527
|
require 'ultracart_api/models/rtg_theme_restriction'
|
|
527
528
|
require 'ultracart_api/models/screen_recording'
|
|
528
529
|
require 'ultracart_api/models/screen_recording_ad_platform'
|
|
@@ -145,7 +145,7 @@ module UltracartClient
|
|
|
145
145
|
# Retrieve payments configuration
|
|
146
146
|
# Retrieves payments configuration for this account.
|
|
147
147
|
# @param [Hash] opts the optional parameters
|
|
148
|
-
# @return [
|
|
148
|
+
# @return [PaymentsConfigurationResponse]
|
|
149
149
|
def get_payments_configuration(opts = {})
|
|
150
150
|
data, _status_code, _headers = get_payments_configuration_with_http_info(opts)
|
|
151
151
|
data
|
|
@@ -154,7 +154,7 @@ module UltracartClient
|
|
|
154
154
|
# Retrieve payments configuration
|
|
155
155
|
# Retrieves payments configuration for this account.
|
|
156
156
|
# @param [Hash] opts the optional parameters
|
|
157
|
-
# @return [Array<(
|
|
157
|
+
# @return [Array<(PaymentsConfigurationResponse, Fixnum, Hash)>] PaymentsConfigurationResponse data, response status code and response headers
|
|
158
158
|
def get_payments_configuration_with_http_info(opts = {})
|
|
159
159
|
if @api_client.config.debugging
|
|
160
160
|
@api_client.config.logger.debug 'Calling API: ConfigurationApi.get_payments_configuration ...'
|
|
@@ -185,7 +185,7 @@ module UltracartClient
|
|
|
185
185
|
:form_params => form_params,
|
|
186
186
|
:body => post_body,
|
|
187
187
|
:auth_names => auth_names,
|
|
188
|
-
:return_type => '
|
|
188
|
+
:return_type => 'PaymentsConfigurationResponse')
|
|
189
189
|
if @api_client.config.debugging
|
|
190
190
|
@api_client.config.logger.debug "API called: ConfigurationApi#get_payments_configuration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
191
191
|
end
|
|
@@ -195,7 +195,7 @@ module UltracartClient
|
|
|
195
195
|
# Retrieve a rotating transaction gateway
|
|
196
196
|
# @param rtg_oid The rtg_oid for the desired record.
|
|
197
197
|
# @param [Hash] opts the optional parameters
|
|
198
|
-
# @return [
|
|
198
|
+
# @return [RotatingTransactionGatewayResponse]
|
|
199
199
|
def get_payments_rotating_gateway(rtg_oid, opts = {})
|
|
200
200
|
data, _status_code, _headers = get_payments_rotating_gateway_with_http_info(rtg_oid, opts)
|
|
201
201
|
data
|
|
@@ -205,7 +205,7 @@ module UltracartClient
|
|
|
205
205
|
# Retrieve a rotating transaction gateway
|
|
206
206
|
# @param rtg_oid The rtg_oid for the desired record.
|
|
207
207
|
# @param [Hash] opts the optional parameters
|
|
208
|
-
# @return [Array<(
|
|
208
|
+
# @return [Array<(RotatingTransactionGatewayResponse, Fixnum, Hash)>] RotatingTransactionGatewayResponse data, response status code and response headers
|
|
209
209
|
def get_payments_rotating_gateway_with_http_info(rtg_oid, opts = {})
|
|
210
210
|
if @api_client.config.debugging
|
|
211
211
|
@api_client.config.logger.debug 'Calling API: ConfigurationApi.get_payments_rotating_gateway ...'
|
|
@@ -240,7 +240,7 @@ module UltracartClient
|
|
|
240
240
|
:form_params => form_params,
|
|
241
241
|
:body => post_body,
|
|
242
242
|
:auth_names => auth_names,
|
|
243
|
-
:return_type => '
|
|
243
|
+
:return_type => 'RotatingTransactionGatewayResponse')
|
|
244
244
|
if @api_client.config.debugging
|
|
245
245
|
@api_client.config.logger.debug "API called: ConfigurationApi#get_payments_rotating_gateway\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
246
246
|
end
|
|
@@ -250,7 +250,7 @@ module UltracartClient
|
|
|
250
250
|
# Retrieve a rotating transaction gateway by code
|
|
251
251
|
# @param code The code for the desired rotating transaction gateway.
|
|
252
252
|
# @param [Hash] opts the optional parameters
|
|
253
|
-
# @return [
|
|
253
|
+
# @return [RotatingTransactionGatewayResponse]
|
|
254
254
|
def get_payments_rotating_gateway_by_code(code, opts = {})
|
|
255
255
|
data, _status_code, _headers = get_payments_rotating_gateway_by_code_with_http_info(code, opts)
|
|
256
256
|
data
|
|
@@ -260,7 +260,7 @@ module UltracartClient
|
|
|
260
260
|
# Retrieve a rotating transaction gateway by code
|
|
261
261
|
# @param code The code for the desired rotating transaction gateway.
|
|
262
262
|
# @param [Hash] opts the optional parameters
|
|
263
|
-
# @return [Array<(
|
|
263
|
+
# @return [Array<(RotatingTransactionGatewayResponse, Fixnum, Hash)>] RotatingTransactionGatewayResponse data, response status code and response headers
|
|
264
264
|
def get_payments_rotating_gateway_by_code_with_http_info(code, opts = {})
|
|
265
265
|
if @api_client.config.debugging
|
|
266
266
|
@api_client.config.logger.debug 'Calling API: ConfigurationApi.get_payments_rotating_gateway_by_code ...'
|
|
@@ -295,7 +295,7 @@ module UltracartClient
|
|
|
295
295
|
:form_params => form_params,
|
|
296
296
|
:body => post_body,
|
|
297
297
|
:auth_names => auth_names,
|
|
298
|
-
:return_type => '
|
|
298
|
+
:return_type => 'RotatingTransactionGatewayResponse')
|
|
299
299
|
if @api_client.config.debugging
|
|
300
300
|
@api_client.config.logger.debug "API called: ConfigurationApi#get_payments_rotating_gateway_by_code\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
301
301
|
end
|
|
@@ -353,7 +353,7 @@ module UltracartClient
|
|
|
353
353
|
# Retrieve a summary of rotating transaction gateways
|
|
354
354
|
# Retrieve a summary of rotating transaction gateways
|
|
355
355
|
# @param [Hash] opts the optional parameters
|
|
356
|
-
# @return [
|
|
356
|
+
# @return [RtgSummaryResponse]
|
|
357
357
|
def get_payments_rtg_summaries(opts = {})
|
|
358
358
|
data, _status_code, _headers = get_payments_rtg_summaries_with_http_info(opts)
|
|
359
359
|
data
|
|
@@ -362,7 +362,7 @@ module UltracartClient
|
|
|
362
362
|
# Retrieve a summary of rotating transaction gateways
|
|
363
363
|
# Retrieve a summary of rotating transaction gateways
|
|
364
364
|
# @param [Hash] opts the optional parameters
|
|
365
|
-
# @return [Array<(
|
|
365
|
+
# @return [Array<(RtgSummaryResponse, Fixnum, Hash)>] RtgSummaryResponse data, response status code and response headers
|
|
366
366
|
def get_payments_rtg_summaries_with_http_info(opts = {})
|
|
367
367
|
if @api_client.config.debugging
|
|
368
368
|
@api_client.config.logger.debug 'Calling API: ConfigurationApi.get_payments_rtg_summaries ...'
|
|
@@ -393,7 +393,7 @@ module UltracartClient
|
|
|
393
393
|
:form_params => form_params,
|
|
394
394
|
:body => post_body,
|
|
395
395
|
:auth_names => auth_names,
|
|
396
|
-
:return_type => '
|
|
396
|
+
:return_type => 'RtgSummaryResponse')
|
|
397
397
|
if @api_client.config.debugging
|
|
398
398
|
@api_client.config.logger.debug "API called: ConfigurationApi#get_payments_rtg_summaries\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
399
399
|
end
|
|
@@ -452,7 +452,7 @@ module UltracartClient
|
|
|
452
452
|
# Insert a rotating transaction gateway
|
|
453
453
|
# @param rotating_transaction_gateway Rotating transaction gateway
|
|
454
454
|
# @param [Hash] opts the optional parameters
|
|
455
|
-
# @return [
|
|
455
|
+
# @return [RotatingTransactionGatewayResponse]
|
|
456
456
|
def insert_rotating_transaction_gateway(rotating_transaction_gateway, opts = {})
|
|
457
457
|
data, _status_code, _headers = insert_rotating_transaction_gateway_with_http_info(rotating_transaction_gateway, opts)
|
|
458
458
|
data
|
|
@@ -462,7 +462,7 @@ module UltracartClient
|
|
|
462
462
|
# Insert a rotating transaction gateway
|
|
463
463
|
# @param rotating_transaction_gateway Rotating transaction gateway
|
|
464
464
|
# @param [Hash] opts the optional parameters
|
|
465
|
-
# @return [Array<(
|
|
465
|
+
# @return [Array<(RotatingTransactionGatewayResponse, Fixnum, Hash)>] RotatingTransactionGatewayResponse data, response status code and response headers
|
|
466
466
|
def insert_rotating_transaction_gateway_with_http_info(rotating_transaction_gateway, opts = {})
|
|
467
467
|
if @api_client.config.debugging
|
|
468
468
|
@api_client.config.logger.debug 'Calling API: ConfigurationApi.insert_rotating_transaction_gateway ...'
|
|
@@ -497,7 +497,7 @@ module UltracartClient
|
|
|
497
497
|
:form_params => form_params,
|
|
498
498
|
:body => post_body,
|
|
499
499
|
:auth_names => auth_names,
|
|
500
|
-
:return_type => '
|
|
500
|
+
:return_type => 'RotatingTransactionGatewayResponse')
|
|
501
501
|
if @api_client.config.debugging
|
|
502
502
|
@api_client.config.logger.debug "API called: ConfigurationApi#insert_rotating_transaction_gateway\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
503
503
|
end
|
|
@@ -507,7 +507,7 @@ module UltracartClient
|
|
|
507
507
|
# Migrate a normal transaction gateway to a rotating transaction gateway
|
|
508
508
|
# @param code The short code for the new rotating transaction gateway
|
|
509
509
|
# @param [Hash] opts the optional parameters
|
|
510
|
-
# @return [
|
|
510
|
+
# @return [RotatingTransactionGatewayResponse]
|
|
511
511
|
def migrate_to_rotating_transaction_gateway(code, opts = {})
|
|
512
512
|
data, _status_code, _headers = migrate_to_rotating_transaction_gateway_with_http_info(code, opts)
|
|
513
513
|
data
|
|
@@ -517,7 +517,7 @@ module UltracartClient
|
|
|
517
517
|
# Migrate a normal transaction gateway to a rotating transaction gateway
|
|
518
518
|
# @param code The short code for the new rotating transaction gateway
|
|
519
519
|
# @param [Hash] opts the optional parameters
|
|
520
|
-
# @return [Array<(
|
|
520
|
+
# @return [Array<(RotatingTransactionGatewayResponse, Fixnum, Hash)>] RotatingTransactionGatewayResponse data, response status code and response headers
|
|
521
521
|
def migrate_to_rotating_transaction_gateway_with_http_info(code, opts = {})
|
|
522
522
|
if @api_client.config.debugging
|
|
523
523
|
@api_client.config.logger.debug 'Calling API: ConfigurationApi.migrate_to_rotating_transaction_gateway ...'
|
|
@@ -552,7 +552,7 @@ module UltracartClient
|
|
|
552
552
|
:form_params => form_params,
|
|
553
553
|
:body => post_body,
|
|
554
554
|
:auth_names => auth_names,
|
|
555
|
-
:return_type => '
|
|
555
|
+
:return_type => 'RotatingTransactionGatewayResponse')
|
|
556
556
|
if @api_client.config.debugging
|
|
557
557
|
@api_client.config.logger.debug "API called: ConfigurationApi#migrate_to_rotating_transaction_gateway\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
558
558
|
end
|
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#UltraCart Rest API V2
|
|
3
|
+
|
|
4
|
+
#UltraCart REST API Version 2
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: 2.0.0
|
|
7
|
+
Contact: support@ultracart.com
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
Swagger Codegen version: 2.4.15-SNAPSHOT
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
|
|
15
|
+
module UltracartClient
|
|
16
|
+
class RotatingTransactionGatewayResponse
|
|
17
|
+
attr_accessor :error
|
|
18
|
+
|
|
19
|
+
attr_accessor :metadata
|
|
20
|
+
|
|
21
|
+
attr_accessor :rotating_gateway
|
|
22
|
+
|
|
23
|
+
# Indicates if API call was successful
|
|
24
|
+
attr_accessor :success
|
|
25
|
+
|
|
26
|
+
attr_accessor :warning
|
|
27
|
+
|
|
28
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
29
|
+
def self.attribute_map
|
|
30
|
+
{
|
|
31
|
+
:'error' => :'error',
|
|
32
|
+
:'metadata' => :'metadata',
|
|
33
|
+
:'rotating_gateway' => :'rotating_gateway',
|
|
34
|
+
:'success' => :'success',
|
|
35
|
+
:'warning' => :'warning'
|
|
36
|
+
}
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
# Attribute type mapping.
|
|
40
|
+
def self.swagger_types
|
|
41
|
+
{
|
|
42
|
+
:'error' => :'Error',
|
|
43
|
+
:'metadata' => :'ResponseMetadata',
|
|
44
|
+
:'rotating_gateway' => :'RotatingTransactionGateway',
|
|
45
|
+
:'success' => :'BOOLEAN',
|
|
46
|
+
:'warning' => :'Warning'
|
|
47
|
+
}
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
# Initializes the object
|
|
51
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
52
|
+
def initialize(attributes = {})
|
|
53
|
+
return unless attributes.is_a?(Hash)
|
|
54
|
+
|
|
55
|
+
# convert string to symbol for hash key
|
|
56
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
57
|
+
|
|
58
|
+
if attributes.has_key?(:'error')
|
|
59
|
+
self.error = attributes[:'error']
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
if attributes.has_key?(:'metadata')
|
|
63
|
+
self.metadata = attributes[:'metadata']
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
if attributes.has_key?(:'rotating_gateway')
|
|
67
|
+
self.rotating_gateway = attributes[:'rotating_gateway']
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
if attributes.has_key?(:'success')
|
|
71
|
+
self.success = attributes[:'success']
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
if attributes.has_key?(:'warning')
|
|
75
|
+
self.warning = attributes[:'warning']
|
|
76
|
+
end
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
80
|
+
# @return Array for valid properties with the reasons
|
|
81
|
+
def list_invalid_properties
|
|
82
|
+
invalid_properties = Array.new
|
|
83
|
+
invalid_properties
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# Check to see if the all the properties in the model are valid
|
|
87
|
+
# @return true if the model is valid
|
|
88
|
+
def valid?
|
|
89
|
+
true
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
# Checks equality by comparing each attribute.
|
|
93
|
+
# @param [Object] Object to be compared
|
|
94
|
+
def ==(o)
|
|
95
|
+
return true if self.equal?(o)
|
|
96
|
+
self.class == o.class &&
|
|
97
|
+
error == o.error &&
|
|
98
|
+
metadata == o.metadata &&
|
|
99
|
+
rotating_gateway == o.rotating_gateway &&
|
|
100
|
+
success == o.success &&
|
|
101
|
+
warning == o.warning
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
# @see the `==` method
|
|
105
|
+
# @param [Object] Object to be compared
|
|
106
|
+
def eql?(o)
|
|
107
|
+
self == o
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
# Calculates hash code according to all attributes.
|
|
111
|
+
# @return [Fixnum] Hash code
|
|
112
|
+
def hash
|
|
113
|
+
[error, metadata, rotating_gateway, success, warning].hash
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
# Builds the object from hash
|
|
117
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
118
|
+
# @return [Object] Returns the model itself
|
|
119
|
+
def build_from_hash(attributes)
|
|
120
|
+
return nil unless attributes.is_a?(Hash)
|
|
121
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
122
|
+
if type =~ /\AArray<(.*)>/i
|
|
123
|
+
# check to ensure the input is an array given that the attribute
|
|
124
|
+
# is documented as an array but the input is not
|
|
125
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
126
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
127
|
+
end
|
|
128
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
129
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
130
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
self
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
# Deserializes the data based on type
|
|
137
|
+
# @param string type Data type
|
|
138
|
+
# @param string value Value to be deserialized
|
|
139
|
+
# @return [Object] Deserialized data
|
|
140
|
+
def _deserialize(type, value)
|
|
141
|
+
case type.to_sym
|
|
142
|
+
when :DateTime
|
|
143
|
+
DateTime.parse(value)
|
|
144
|
+
when :Date
|
|
145
|
+
Date.parse(value)
|
|
146
|
+
when :String
|
|
147
|
+
value.to_s
|
|
148
|
+
when :Integer
|
|
149
|
+
value.to_i
|
|
150
|
+
when :Float
|
|
151
|
+
value.to_f
|
|
152
|
+
when :BOOLEAN
|
|
153
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
154
|
+
true
|
|
155
|
+
else
|
|
156
|
+
false
|
|
157
|
+
end
|
|
158
|
+
when :Object
|
|
159
|
+
# generic object (usually a Hash), return directly
|
|
160
|
+
value
|
|
161
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
162
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
163
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
164
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
165
|
+
k_type = Regexp.last_match[:k_type]
|
|
166
|
+
v_type = Regexp.last_match[:v_type]
|
|
167
|
+
{}.tap do |hash|
|
|
168
|
+
value.each do |k, v|
|
|
169
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
170
|
+
end
|
|
171
|
+
end
|
|
172
|
+
else # model
|
|
173
|
+
temp_model = UltracartClient.const_get(type).new
|
|
174
|
+
temp_model.build_from_hash(value)
|
|
175
|
+
end
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
# Returns the string representation of the object
|
|
179
|
+
# @return [String] String presentation of the object
|
|
180
|
+
def to_s
|
|
181
|
+
to_hash.to_s
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
185
|
+
# @return [Hash] Returns the object in the form of hash
|
|
186
|
+
def to_body
|
|
187
|
+
to_hash
|
|
188
|
+
end
|
|
189
|
+
|
|
190
|
+
# Returns the object in the form of hash
|
|
191
|
+
# @return [Hash] Returns the object in the form of hash
|
|
192
|
+
def to_hash
|
|
193
|
+
hash = {}
|
|
194
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
195
|
+
value = self.send(attr)
|
|
196
|
+
next if value.nil?
|
|
197
|
+
hash[param] = _to_hash(value)
|
|
198
|
+
end
|
|
199
|
+
hash
|
|
200
|
+
end
|
|
201
|
+
|
|
202
|
+
# Outputs non-array value in the form of hash
|
|
203
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
204
|
+
# @param [Object] value Any valid value
|
|
205
|
+
# @return [Hash] Returns the value in the form of hash
|
|
206
|
+
def _to_hash(value)
|
|
207
|
+
if value.is_a?(Array)
|
|
208
|
+
value.compact.map { |v| _to_hash(v) }
|
|
209
|
+
elsif value.is_a?(Hash)
|
|
210
|
+
{}.tap do |hash|
|
|
211
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
212
|
+
end
|
|
213
|
+
elsif value.respond_to? :to_hash
|
|
214
|
+
value.to_hash
|
|
215
|
+
else
|
|
216
|
+
value
|
|
217
|
+
end
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
end
|
|
221
|
+
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ultracart_api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.4.
|
|
4
|
+
version: 3.4.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- UltraCart
|
|
@@ -713,12 +713,13 @@ files:
|
|
|
713
713
|
- docs/ResponseMetadata.md
|
|
714
714
|
- docs/ResultSet.md
|
|
715
715
|
- docs/RotatingTransactionGateway.md
|
|
716
|
+
- docs/RotatingTransactionGatewayResponse.md
|
|
716
717
|
- docs/RotatingTransactionGatewaysResponse.md
|
|
717
718
|
- docs/RtgCurrency.md
|
|
718
719
|
- docs/RtgDayOfMonthRestriction.md
|
|
719
720
|
- docs/RtgDayOfWeekRestriction.md
|
|
720
|
-
- docs/RtgSummary.md
|
|
721
721
|
- docs/RtgSummaryGateway.md
|
|
722
|
+
- docs/RtgSummaryResponse.md
|
|
722
723
|
- docs/RtgThemeRestriction.md
|
|
723
724
|
- docs/ScreenRecording.md
|
|
724
725
|
- docs/ScreenRecordingAdPlatform.md
|
|
@@ -1361,12 +1362,13 @@ files:
|
|
|
1361
1362
|
- lib/ultracart_api/models/response_metadata.rb
|
|
1362
1363
|
- lib/ultracart_api/models/result_set.rb
|
|
1363
1364
|
- lib/ultracart_api/models/rotating_transaction_gateway.rb
|
|
1365
|
+
- lib/ultracart_api/models/rotating_transaction_gateway_response.rb
|
|
1364
1366
|
- lib/ultracart_api/models/rotating_transaction_gateways_response.rb
|
|
1365
1367
|
- lib/ultracart_api/models/rtg_currency.rb
|
|
1366
1368
|
- lib/ultracart_api/models/rtg_day_of_month_restriction.rb
|
|
1367
1369
|
- lib/ultracart_api/models/rtg_day_of_week_restriction.rb
|
|
1368
|
-
- lib/ultracart_api/models/rtg_summary.rb
|
|
1369
1370
|
- lib/ultracart_api/models/rtg_summary_gateway.rb
|
|
1371
|
+
- lib/ultracart_api/models/rtg_summary_response.rb
|
|
1370
1372
|
- lib/ultracart_api/models/rtg_theme_restriction.rb
|
|
1371
1373
|
- lib/ultracart_api/models/screen_recording.rb
|
|
1372
1374
|
- lib/ultracart_api/models/screen_recording_ad_platform.rb
|