ultracart_api 3.4.2 → 3.4.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -4
- data/docs/ConfigurationApi.md +2 -2
- data/docs/OrderChannelPartner.md +1 -0
- data/docs/OrderTrackingNumberDetail.md +2 -0
- data/docs/RotatingTransactionGateway.md +4 -3
- data/lib/ultracart_api/api/configuration_api.rb +3 -3
- data/lib/ultracart_api/models/order_channel_partner.rb +11 -1
- data/lib/ultracart_api/models/order_tracking_number_detail.rb +21 -1
- data/lib/ultracart_api/models/rotating_transaction_gateway.rb +13 -3
- data/lib/ultracart_api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: abdcb875151f2365cc95ec8ee697e30cdf7e6e7802d18e6ca368ecdd8874d444
|
4
|
+
data.tar.gz: 335ad17c98e9658f69723a3233f60fd892126666d2d401bdb8334931563e2720
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0cdea5e196a653e18f44ffb53461d385b1ac5bec66da25651c9df5004a89ddca4e1d1fbe9a9c44ef424aefea4a08118a36e67874045b240ec6bb17e068857e90
|
7
|
+
data.tar.gz: b9cbccdcc7b6a89bf99ab504985b89ff7f5ffc524546ab215db0fbb3add2e66b60da9926e9824f3a1f3b9e473151e24a5bfab2a61c682ed0ea13fae5e245a114
|
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.6
|
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.6.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.6.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.6'
|
36
36
|
|
37
37
|
### Install from Git
|
38
38
|
|
@@ -1099,6 +1099,8 @@ Not every change is committed to every SDK.
|
|
1099
1099
|
|
1100
1100
|
| Version | Date | Comments |
|
1101
1101
|
| --: | :-: | --- |
|
1102
|
+
| 3.4.5 | 08/03/2021 | configuration api bug fix for a bad response object on updateRotatingTransactionGateway |
|
1103
|
+
| 3.4.3 | 08/03/2021 | package tracking - add event_iso_date and event_timezone_id |
|
1102
1104
|
| 3.4.2 | 07/29/2021 | bug fixes for new configuration api |
|
1103
1105
|
| 3.4.1 | 07/29/2021 | bug fixes for new configuration api |
|
1104
1106
|
| 3.4.0 | 07/29/2021 | added new configuration api (not live yet. sdk only works against development presently) |
|
data/docs/ConfigurationApi.md
CHANGED
@@ -652,7 +652,7 @@ Name | Type | Description | Notes
|
|
652
652
|
|
653
653
|
|
654
654
|
# **update_rotating_transaction_gateway**
|
655
|
-
>
|
655
|
+
> RotatingTransactionGatewayResponse update_rotating_transaction_gateway(rtg_oid, rotating_transaction_gateway)
|
656
656
|
|
657
657
|
Update a rotating transaction gateway
|
658
658
|
|
@@ -691,7 +691,7 @@ Name | Type | Description | Notes
|
|
691
691
|
|
692
692
|
### Return type
|
693
693
|
|
694
|
-
[**
|
694
|
+
[**RotatingTransactionGatewayResponse**](RotatingTransactionGatewayResponse.md)
|
695
695
|
|
696
696
|
### Authorization
|
697
697
|
|
data/docs/OrderChannelPartner.md
CHANGED
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
|
|
8
8
|
**channel_partner_data** | **String** | Additional data provided by the channel partner, read-only | [optional]
|
9
9
|
**channel_partner_oid** | **Integer** | Channel partner object identifier, read-only and available on existing channel orders only. | [optional]
|
10
10
|
**channel_partner_order_id** | **String** | The order ID assigned by the channel partner for this order | [optional]
|
11
|
+
**ignore_invalid_shipping_method** | **BOOLEAN** | Set to true to ignore invalid shipping method being specified. Only applicable on inserting orders. | [optional]
|
11
12
|
**no_realtime_payment_processing** | **BOOLEAN** | Indicates this order should be placed in Account Receivable for later payment processing | [optional]
|
12
13
|
**skip_payment_processing** | **BOOLEAN** | Indicates this order was already paid for via a channel purchase and no payment collection should be attempted | [optional]
|
13
14
|
**store_completed** | **BOOLEAN** | Instructs UltraCart to skip shipping department and mark this order as fully complete. Set this flag if you have already shipped product for this order. | [optional]
|
@@ -4,8 +4,10 @@
|
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
6
|
**city** | **String** | | [optional]
|
7
|
+
**event_dts** | **String** | ISO 8601 timestamp that the event occurred | [optional]
|
7
8
|
**event_local_date** | **String** | | [optional]
|
8
9
|
**event_local_time** | **String** | | [optional]
|
10
|
+
**event_timezone_id** | **String** | Timezone the event occurred in. Use this in conjunction with event_dts to format a local date/time. | [optional]
|
9
11
|
**state** | **String** | | [optional]
|
10
12
|
**subtag** | **String** | | [optional]
|
11
13
|
**subtag_message** | **String** | | [optional]
|
@@ -43,8 +43,9 @@ Name | Type | Description | Notes
|
|
43
43
|
**status** | **String** | A field used to take a gateway offline without removing/deleting the configuration. Inactive marks the gateway as completely unusable. Standby takes the gateway offline and will not be used unless all other active gateways fail. | [optional]
|
44
44
|
**theme_restrictions** | [**Array<RtgThemeRestriction>**](RtgThemeRestriction.md) | Optional restrictions by theme/storefront | [optional]
|
45
45
|
**traffic_percentage** | **Float** | Required field between 0 and 1 that dictates the percentage of traffic that should flow through this gateway | [optional]
|
46
|
-
**trial_daily_amount** | **Integer** | If specified, limits the total daily
|
47
|
-
**trial_daily_limit** | **Integer** | If specified, limits the total
|
48
|
-
**
|
46
|
+
**trial_daily_amount** | **Integer** | If specified, limits the total daily count of trial orders | [optional]
|
47
|
+
**trial_daily_limit** | **Integer** | If specified, limits the total daily dollar amount of trial orders | [optional]
|
48
|
+
**trial_monthly_amount** | **Integer** | If specified, limits the total month dollar amount of trial orders | [optional]
|
49
|
+
**trial_monthly_limit** | **Integer** | If specified, limits the total month count of trial orders | [optional]
|
49
50
|
|
50
51
|
|
@@ -728,7 +728,7 @@ module UltracartClient
|
|
728
728
|
# @param rtg_oid The rtg_oid to update.
|
729
729
|
# @param rotating_transaction_gateway Rotating transaction gateway
|
730
730
|
# @param [Hash] opts the optional parameters
|
731
|
-
# @return [
|
731
|
+
# @return [RotatingTransactionGatewayResponse]
|
732
732
|
def update_rotating_transaction_gateway(rtg_oid, rotating_transaction_gateway, opts = {})
|
733
733
|
data, _status_code, _headers = update_rotating_transaction_gateway_with_http_info(rtg_oid, rotating_transaction_gateway, opts)
|
734
734
|
data
|
@@ -739,7 +739,7 @@ module UltracartClient
|
|
739
739
|
# @param rtg_oid The rtg_oid to update.
|
740
740
|
# @param rotating_transaction_gateway Rotating transaction gateway
|
741
741
|
# @param [Hash] opts the optional parameters
|
742
|
-
# @return [Array<(
|
742
|
+
# @return [Array<(RotatingTransactionGatewayResponse, Fixnum, Hash)>] RotatingTransactionGatewayResponse data, response status code and response headers
|
743
743
|
def update_rotating_transaction_gateway_with_http_info(rtg_oid, rotating_transaction_gateway, opts = {})
|
744
744
|
if @api_client.config.debugging
|
745
745
|
@api_client.config.logger.debug 'Calling API: ConfigurationApi.update_rotating_transaction_gateway ...'
|
@@ -778,7 +778,7 @@ module UltracartClient
|
|
778
778
|
:form_params => form_params,
|
779
779
|
:body => post_body,
|
780
780
|
:auth_names => auth_names,
|
781
|
-
:return_type => '
|
781
|
+
:return_type => 'RotatingTransactionGatewayResponse')
|
782
782
|
if @api_client.config.debugging
|
783
783
|
@api_client.config.logger.debug "API called: ConfigurationApi#update_rotating_transaction_gateway\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
784
784
|
end
|
@@ -29,6 +29,9 @@ module UltracartClient
|
|
29
29
|
# The order ID assigned by the channel partner for this order
|
30
30
|
attr_accessor :channel_partner_order_id
|
31
31
|
|
32
|
+
# Set to true to ignore invalid shipping method being specified. Only applicable on inserting orders.
|
33
|
+
attr_accessor :ignore_invalid_shipping_method
|
34
|
+
|
32
35
|
# Indicates this order should be placed in Account Receivable for later payment processing
|
33
36
|
attr_accessor :no_realtime_payment_processing
|
34
37
|
|
@@ -52,6 +55,7 @@ module UltracartClient
|
|
52
55
|
:'channel_partner_data' => :'channel_partner_data',
|
53
56
|
:'channel_partner_oid' => :'channel_partner_oid',
|
54
57
|
:'channel_partner_order_id' => :'channel_partner_order_id',
|
58
|
+
:'ignore_invalid_shipping_method' => :'ignore_invalid_shipping_method',
|
55
59
|
:'no_realtime_payment_processing' => :'no_realtime_payment_processing',
|
56
60
|
:'skip_payment_processing' => :'skip_payment_processing',
|
57
61
|
:'store_completed' => :'store_completed',
|
@@ -68,6 +72,7 @@ module UltracartClient
|
|
68
72
|
:'channel_partner_data' => :'String',
|
69
73
|
:'channel_partner_oid' => :'Integer',
|
70
74
|
:'channel_partner_order_id' => :'String',
|
75
|
+
:'ignore_invalid_shipping_method' => :'BOOLEAN',
|
71
76
|
:'no_realtime_payment_processing' => :'BOOLEAN',
|
72
77
|
:'skip_payment_processing' => :'BOOLEAN',
|
73
78
|
:'store_completed' => :'BOOLEAN',
|
@@ -104,6 +109,10 @@ module UltracartClient
|
|
104
109
|
self.channel_partner_order_id = attributes[:'channel_partner_order_id']
|
105
110
|
end
|
106
111
|
|
112
|
+
if attributes.has_key?(:'ignore_invalid_shipping_method')
|
113
|
+
self.ignore_invalid_shipping_method = attributes[:'ignore_invalid_shipping_method']
|
114
|
+
end
|
115
|
+
|
107
116
|
if attributes.has_key?(:'no_realtime_payment_processing')
|
108
117
|
self.no_realtime_payment_processing = attributes[:'no_realtime_payment_processing']
|
109
118
|
end
|
@@ -148,6 +157,7 @@ module UltracartClient
|
|
148
157
|
channel_partner_data == o.channel_partner_data &&
|
149
158
|
channel_partner_oid == o.channel_partner_oid &&
|
150
159
|
channel_partner_order_id == o.channel_partner_order_id &&
|
160
|
+
ignore_invalid_shipping_method == o.ignore_invalid_shipping_method &&
|
151
161
|
no_realtime_payment_processing == o.no_realtime_payment_processing &&
|
152
162
|
skip_payment_processing == o.skip_payment_processing &&
|
153
163
|
store_completed == o.store_completed &&
|
@@ -164,7 +174,7 @@ module UltracartClient
|
|
164
174
|
# Calculates hash code according to all attributes.
|
165
175
|
# @return [Fixnum] Hash code
|
166
176
|
def hash
|
167
|
-
[auto_approve_purchase_order, channel_partner_code, channel_partner_data, channel_partner_oid, channel_partner_order_id, no_realtime_payment_processing, skip_payment_processing, store_completed, store_if_payment_declines, treat_warnings_as_errors].hash
|
177
|
+
[auto_approve_purchase_order, channel_partner_code, channel_partner_data, channel_partner_oid, channel_partner_order_id, ignore_invalid_shipping_method, no_realtime_payment_processing, skip_payment_processing, store_completed, store_if_payment_declines, treat_warnings_as_errors].hash
|
168
178
|
end
|
169
179
|
|
170
180
|
# Builds the object from hash
|
@@ -16,10 +16,16 @@ module UltracartClient
|
|
16
16
|
class OrderTrackingNumberDetail
|
17
17
|
attr_accessor :city
|
18
18
|
|
19
|
+
# ISO 8601 timestamp that the event occurred
|
20
|
+
attr_accessor :event_dts
|
21
|
+
|
19
22
|
attr_accessor :event_local_date
|
20
23
|
|
21
24
|
attr_accessor :event_local_time
|
22
25
|
|
26
|
+
# Timezone the event occurred in. Use this in conjunction with event_dts to format a local date/time.
|
27
|
+
attr_accessor :event_timezone_id
|
28
|
+
|
23
29
|
attr_accessor :state
|
24
30
|
|
25
31
|
attr_accessor :subtag
|
@@ -38,8 +44,10 @@ module UltracartClient
|
|
38
44
|
def self.attribute_map
|
39
45
|
{
|
40
46
|
:'city' => :'city',
|
47
|
+
:'event_dts' => :'event_dts',
|
41
48
|
:'event_local_date' => :'event_local_date',
|
42
49
|
:'event_local_time' => :'event_local_time',
|
50
|
+
:'event_timezone_id' => :'event_timezone_id',
|
43
51
|
:'state' => :'state',
|
44
52
|
:'subtag' => :'subtag',
|
45
53
|
:'subtag_message' => :'subtag_message',
|
@@ -54,8 +62,10 @@ module UltracartClient
|
|
54
62
|
def self.swagger_types
|
55
63
|
{
|
56
64
|
:'city' => :'String',
|
65
|
+
:'event_dts' => :'String',
|
57
66
|
:'event_local_date' => :'String',
|
58
67
|
:'event_local_time' => :'String',
|
68
|
+
:'event_timezone_id' => :'String',
|
59
69
|
:'state' => :'String',
|
60
70
|
:'subtag' => :'String',
|
61
71
|
:'subtag_message' => :'String',
|
@@ -78,6 +88,10 @@ module UltracartClient
|
|
78
88
|
self.city = attributes[:'city']
|
79
89
|
end
|
80
90
|
|
91
|
+
if attributes.has_key?(:'event_dts')
|
92
|
+
self.event_dts = attributes[:'event_dts']
|
93
|
+
end
|
94
|
+
|
81
95
|
if attributes.has_key?(:'event_local_date')
|
82
96
|
self.event_local_date = attributes[:'event_local_date']
|
83
97
|
end
|
@@ -86,6 +100,10 @@ module UltracartClient
|
|
86
100
|
self.event_local_time = attributes[:'event_local_time']
|
87
101
|
end
|
88
102
|
|
103
|
+
if attributes.has_key?(:'event_timezone_id')
|
104
|
+
self.event_timezone_id = attributes[:'event_timezone_id']
|
105
|
+
end
|
106
|
+
|
89
107
|
if attributes.has_key?(:'state')
|
90
108
|
self.state = attributes[:'state']
|
91
109
|
end
|
@@ -134,8 +152,10 @@ module UltracartClient
|
|
134
152
|
return true if self.equal?(o)
|
135
153
|
self.class == o.class &&
|
136
154
|
city == o.city &&
|
155
|
+
event_dts == o.event_dts &&
|
137
156
|
event_local_date == o.event_local_date &&
|
138
157
|
event_local_time == o.event_local_time &&
|
158
|
+
event_timezone_id == o.event_timezone_id &&
|
139
159
|
state == o.state &&
|
140
160
|
subtag == o.subtag &&
|
141
161
|
subtag_message == o.subtag_message &&
|
@@ -154,7 +174,7 @@ module UltracartClient
|
|
154
174
|
# Calculates hash code according to all attributes.
|
155
175
|
# @return [Fixnum] Hash code
|
156
176
|
def hash
|
157
|
-
[city, event_local_date, event_local_time, state, subtag, subtag_message, tag, tag_description, tag_icon, zip].hash
|
177
|
+
[city, event_dts, event_local_date, event_local_time, event_timezone_id, state, subtag, subtag_message, tag, tag_description, tag_icon, zip].hash
|
158
178
|
end
|
159
179
|
|
160
180
|
# Builds the object from hash
|
@@ -134,13 +134,16 @@ module UltracartClient
|
|
134
134
|
# Required field between 0 and 1 that dictates the percentage of traffic that should flow through this gateway
|
135
135
|
attr_accessor :traffic_percentage
|
136
136
|
|
137
|
-
# If specified, limits the total daily
|
137
|
+
# If specified, limits the total daily count of trial orders
|
138
138
|
attr_accessor :trial_daily_amount
|
139
139
|
|
140
|
-
# If specified, limits the total
|
140
|
+
# If specified, limits the total daily dollar amount of trial orders
|
141
141
|
attr_accessor :trial_daily_limit
|
142
142
|
|
143
143
|
# If specified, limits the total month dollar amount of trial orders
|
144
|
+
attr_accessor :trial_monthly_amount
|
145
|
+
|
146
|
+
# If specified, limits the total month count of trial orders
|
144
147
|
attr_accessor :trial_monthly_limit
|
145
148
|
|
146
149
|
class EnumAttributeValidator
|
@@ -210,6 +213,7 @@ module UltracartClient
|
|
210
213
|
:'traffic_percentage' => :'traffic_percentage',
|
211
214
|
:'trial_daily_amount' => :'trial_daily_amount',
|
212
215
|
:'trial_daily_limit' => :'trial_daily_limit',
|
216
|
+
:'trial_monthly_amount' => :'trial_monthly_amount',
|
213
217
|
:'trial_monthly_limit' => :'trial_monthly_limit'
|
214
218
|
}
|
215
219
|
end
|
@@ -259,6 +263,7 @@ module UltracartClient
|
|
259
263
|
:'traffic_percentage' => :'Float',
|
260
264
|
:'trial_daily_amount' => :'Integer',
|
261
265
|
:'trial_daily_limit' => :'Integer',
|
266
|
+
:'trial_monthly_amount' => :'Integer',
|
262
267
|
:'trial_monthly_limit' => :'Integer'
|
263
268
|
}
|
264
269
|
end
|
@@ -453,6 +458,10 @@ module UltracartClient
|
|
453
458
|
self.trial_daily_limit = attributes[:'trial_daily_limit']
|
454
459
|
end
|
455
460
|
|
461
|
+
if attributes.has_key?(:'trial_monthly_amount')
|
462
|
+
self.trial_monthly_amount = attributes[:'trial_monthly_amount']
|
463
|
+
end
|
464
|
+
|
456
465
|
if attributes.has_key?(:'trial_monthly_limit')
|
457
466
|
self.trial_monthly_limit = attributes[:'trial_monthly_limit']
|
458
467
|
end
|
@@ -542,6 +551,7 @@ module UltracartClient
|
|
542
551
|
traffic_percentage == o.traffic_percentage &&
|
543
552
|
trial_daily_amount == o.trial_daily_amount &&
|
544
553
|
trial_daily_limit == o.trial_daily_limit &&
|
554
|
+
trial_monthly_amount == o.trial_monthly_amount &&
|
545
555
|
trial_monthly_limit == o.trial_monthly_limit
|
546
556
|
end
|
547
557
|
|
@@ -554,7 +564,7 @@ module UltracartClient
|
|
554
564
|
# Calculates hash code according to all attributes.
|
555
565
|
# @return [Fixnum] Hash code
|
556
566
|
def hash
|
557
|
-
[additional_native_currency_codes, auto_order_cancel_unless_response_name, auto_order_cancel_unless_response_values, base_currency_code, cascade_code, cascade_codes, cascade_daily_auto_order_code, charge_appears_on_statement_as, code, current_daily, current_daily_auto_order, current_monthly, customer_service_email, customer_service_phone, day_of_month_restrictions, day_of_week_restrictions, deactivate_after_failures, end_date, gateways, maximum_daily, maximum_daily_auto_order, maximum_monthly, next_daily_auto_order_reset, next_daily_reset, next_monthly_reset, order_total, order_total_comparison, rebill_auto_orders_against_this_rtg_code, reserve_days, reserve_percentage, reserve_refunded, reserves_released_through, rotating_transaction_gateway_oid, selected_gateway_name, show_cascade_codes, show_merchant_account_profiles, start_date, status, theme_restrictions, traffic_percentage, trial_daily_amount, trial_daily_limit, trial_monthly_limit].hash
|
567
|
+
[additional_native_currency_codes, auto_order_cancel_unless_response_name, auto_order_cancel_unless_response_values, base_currency_code, cascade_code, cascade_codes, cascade_daily_auto_order_code, charge_appears_on_statement_as, code, current_daily, current_daily_auto_order, current_monthly, customer_service_email, customer_service_phone, day_of_month_restrictions, day_of_week_restrictions, deactivate_after_failures, end_date, gateways, maximum_daily, maximum_daily_auto_order, maximum_monthly, next_daily_auto_order_reset, next_daily_reset, next_monthly_reset, order_total, order_total_comparison, rebill_auto_orders_against_this_rtg_code, reserve_days, reserve_percentage, reserve_refunded, reserves_released_through, rotating_transaction_gateway_oid, selected_gateway_name, show_cascade_codes, show_merchant_account_profiles, start_date, status, theme_restrictions, traffic_percentage, trial_daily_amount, trial_daily_limit, trial_monthly_amount, trial_monthly_limit].hash
|
558
568
|
end
|
559
569
|
|
560
570
|
# Builds the object from hash
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- UltraCart
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-08-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|