ultracart_api 3.10.137 → 3.10.139
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +8 -6
- data/docs/AutoOrderItem.md +2 -0
- data/docs/ItemApi.md +6 -6
- data/docs/ItemPricingTierLimit.md +1 -0
- data/docs/ReportDataSet.md +1 -0
- data/lib/ultracart_api/api/item_api.rb +4 -4
- data/lib/ultracart_api/models/auto_order_item.rb +21 -1
- data/lib/ultracart_api/models/item_pricing_tier_limit.rb +16 -4
- data/lib/ultracart_api/models/order_payment.rb +2 -2
- data/lib/ultracart_api/models/report_data_set.rb +10 -1
- 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: f39f057114d1c099357f2927ffee958761d7f6f9335ce6df585ff9ca66400632
|
4
|
+
data.tar.gz: 429ef818aad66171ca553172d9512379cc5e3aee6f610dff7b911125284da26a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 72b47aee14efcacaeb10047b0baf3f80a9a88ba9e1e3446a7f727b8518437ea67289ec09a3457b8f11dbf4d00283f784bc294c253aa280a9a0853be7c3450580
|
7
|
+
data.tar.gz: 5500e449fea9ac31fe1dce13ca81f63e1ee5c80b02d94470b1cb630be53862da79cb507eef1f5f9d9e23b4ea831dc06a0711e088ee321e5a488830baacb7f191
|
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.10.
|
10
|
+
- Package version: 3.10.139
|
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.10.
|
27
|
+
gem install ./ultracart_api-3.10.139.gem
|
28
28
|
```
|
29
|
-
(for development, run `gem install --dev ./ultracart_api-3.10.
|
29
|
+
(for development, run `gem install --dev ./ultracart_api-3.10.139.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.10.
|
35
|
+
gem 'ultracart_api', '~> 3.10.139'
|
36
36
|
|
37
37
|
### Install from Git
|
38
38
|
|
@@ -243,8 +243,8 @@ Class | Method | HTTP request | Description
|
|
243
243
|
*UltracartClient::ItemApi* | [**get_item_by_merchant_item_id**](docs/ItemApi.md#get_item_by_merchant_item_id) | **GET** /item/items/merchant_item_id/{merchant_item_id} | Retrieve an item by item id
|
244
244
|
*UltracartClient::ItemApi* | [**get_items**](docs/ItemApi.md#get_items) | **GET** /item/items | Retrieve items
|
245
245
|
*UltracartClient::ItemApi* | [**get_pricing_tiers**](docs/ItemApi.md#get_pricing_tiers) | **GET** /item/pricing_tiers | Retrieve pricing tiers
|
246
|
-
*UltracartClient::ItemApi* | [**get_review**](docs/ItemApi.md#get_review) | **GET** /item/items/{merchant_item_oid}/reviews/{review_oid} |
|
247
|
-
*UltracartClient::ItemApi* | [**get_reviews**](docs/ItemApi.md#get_reviews) | **GET** /item/items/{merchant_item_oid}/reviews |
|
246
|
+
*UltracartClient::ItemApi* | [**get_review**](docs/ItemApi.md#get_review) | **GET** /item/items/{merchant_item_oid}/reviews/{review_oid} | Get a review
|
247
|
+
*UltracartClient::ItemApi* | [**get_reviews**](docs/ItemApi.md#get_reviews) | **GET** /item/items/{merchant_item_oid}/reviews | Get reviews for an item
|
248
248
|
*UltracartClient::ItemApi* | [**get_unassociated_digital_items**](docs/ItemApi.md#get_unassociated_digital_items) | **GET** /item/digital_library/unassociated | Retrieve digital items from the digital library (which are digital files that may be attached to normal items) not yet associated with actual items
|
249
249
|
*UltracartClient::ItemApi* | [**insert_digital_item**](docs/ItemApi.md#insert_digital_item) | **POST** /item/digital_library | Create a file within the digital library
|
250
250
|
*UltracartClient::ItemApi* | [**insert_item**](docs/ItemApi.md#insert_item) | **POST** /item/items | Create an item
|
@@ -1354,6 +1354,8 @@ Not every change is committed to every SDK.
|
|
1354
1354
|
|
1355
1355
|
| Version | Date | Comments |
|
1356
1356
|
| --: | :-: | --- |
|
1357
|
+
| 3.10.139 | 05/25/2023 | added venmo constants for payment type |
|
1358
|
+
| 3.10.138 | 05/18/2023 | dw bi - send back the executed SQL |
|
1357
1359
|
| 3.10.137 | 05/04/2023 | item api added methods for items reviews |
|
1358
1360
|
| 3.10.136 | 04/28/2023 | item - pricing tier level flag for exempt from min item count |
|
1359
1361
|
| 3.10.135 | 04/27/2023 | order - expose dual vaulted identifiers |
|
data/docs/AutoOrderItem.md
CHANGED
@@ -10,6 +10,7 @@ Name | Type | Description | Notes
|
|
10
10
|
**arbitrary_unit_cost** | **Float** | Arbitrary unit cost that rebills of this item should occur at | [optional]
|
11
11
|
**arbitrary_unit_cost_remaining_orders** | **Integer** | The number of rebills to give the arbitrary unit cost on before reverting to normal pricing. | [optional]
|
12
12
|
**auto_order_item_oid** | **Integer** | Primary key of AutoOrderItem | [optional]
|
13
|
+
**first_order_dts** | **String** | Date/time of the first order of this item. Null if item added to auto order and has not been rebilled yet. | [optional]
|
13
14
|
**frequency** | **String** | Frequency of the rebill if not a fixed schedule | [optional]
|
14
15
|
**future_schedules** | [**Array<AutoOrderItemFutureSchedule>**](AutoOrderItemFutureSchedule.md) | The future rebill schedule for this item up to the next ten rebills | [optional]
|
15
16
|
**last_order_dts** | **String** | Date/time of the last order of this item | [optional]
|
@@ -21,6 +22,7 @@ Name | Type | Description | Notes
|
|
21
22
|
**options** | [**Array<AutoOrderItemOption>**](AutoOrderItemOption.md) | Options associated with this item | [optional]
|
22
23
|
**original_item_id** | **String** | The original item id purchased. This item controls scheduling. If you wish to modify a schedule, for example, from monthly to yearly, change this item from your monthly item to your yearly item, and then change the next_shipment_dts to your desired date. | [optional]
|
23
24
|
**original_quantity** | **Float** | The original quantity purchased | [optional]
|
25
|
+
**paused** | **BOOLEAN** | True if paused. This field is an object instead of a primitive for backwards compatibility. | [optional]
|
24
26
|
**paypal_payer_id** | **String** | The PayPal Payer ID tied to this item | [optional]
|
25
27
|
**paypal_recurring_payment_profile_id** | **String** | The PayPal Profile ID tied to this item | [optional]
|
26
28
|
**preshipment_notice_sent** | **BOOLEAN** | True if the preshipment notice associated with the next rebill has been sent | [optional]
|
data/docs/ItemApi.md
CHANGED
@@ -14,8 +14,8 @@ Method | HTTP request | Description
|
|
14
14
|
[**get_item_by_merchant_item_id**](ItemApi.md#get_item_by_merchant_item_id) | **GET** /item/items/merchant_item_id/{merchant_item_id} | Retrieve an item by item id
|
15
15
|
[**get_items**](ItemApi.md#get_items) | **GET** /item/items | Retrieve items
|
16
16
|
[**get_pricing_tiers**](ItemApi.md#get_pricing_tiers) | **GET** /item/pricing_tiers | Retrieve pricing tiers
|
17
|
-
[**get_review**](ItemApi.md#get_review) | **GET** /item/items/{merchant_item_oid}/reviews/{review_oid} |
|
18
|
-
[**get_reviews**](ItemApi.md#get_reviews) | **GET** /item/items/{merchant_item_oid}/reviews |
|
17
|
+
[**get_review**](ItemApi.md#get_review) | **GET** /item/items/{merchant_item_oid}/reviews/{review_oid} | Get a review
|
18
|
+
[**get_reviews**](ItemApi.md#get_reviews) | **GET** /item/items/{merchant_item_oid}/reviews | Get reviews for an item
|
19
19
|
[**get_unassociated_digital_items**](ItemApi.md#get_unassociated_digital_items) | **GET** /item/digital_library/unassociated | Retrieve digital items from the digital library (which are digital files that may be attached to normal items) not yet associated with actual items
|
20
20
|
[**insert_digital_item**](ItemApi.md#insert_digital_item) | **POST** /item/digital_library | Create a file within the digital library
|
21
21
|
[**insert_item**](ItemApi.md#insert_item) | **POST** /item/items | Create an item
|
@@ -569,7 +569,7 @@ Name | Type | Description | Notes
|
|
569
569
|
# **get_review**
|
570
570
|
> ItemReviewResponse get_review(review_oid, merchant_item_oid)
|
571
571
|
|
572
|
-
|
572
|
+
Get a review
|
573
573
|
|
574
574
|
Retrieve an item review.
|
575
575
|
|
@@ -589,7 +589,7 @@ merchant_item_oid = 56 # Integer | The item oid the review is associated with.
|
|
589
589
|
|
590
590
|
|
591
591
|
begin
|
592
|
-
#
|
592
|
+
#Get a review
|
593
593
|
result = api_instance.get_review(review_oid, merchant_item_oid)
|
594
594
|
p result
|
595
595
|
rescue UltracartClient::ApiError => e
|
@@ -622,7 +622,7 @@ Name | Type | Description | Notes
|
|
622
622
|
# **get_reviews**
|
623
623
|
> ItemReviewsResponse get_reviews(merchant_item_oid)
|
624
624
|
|
625
|
-
|
625
|
+
Get reviews for an item
|
626
626
|
|
627
627
|
Retrieve item reviews.
|
628
628
|
|
@@ -640,7 +640,7 @@ merchant_item_oid = 56 # Integer | The item oid the review is associated with.
|
|
640
640
|
|
641
641
|
|
642
642
|
begin
|
643
|
-
#
|
643
|
+
#Get reviews for an item
|
644
644
|
result = api_instance.get_reviews(merchant_item_oid)
|
645
645
|
p result
|
646
646
|
rescue UltracartClient::ApiError => e
|
@@ -7,5 +7,6 @@ Name | Type | Description | Notes
|
|
7
7
|
**exempt_from_minimum_item_count** | **BOOLEAN** | Exempt from Minimum Item Count | [optional]
|
8
8
|
**individual_order_limit** | **Integer** | Individual order limit | [optional]
|
9
9
|
**multiple_quantity** | **Integer** | Multiple quantity | [optional]
|
10
|
+
**payment_method_validity** | **Array<String>** | Payment method validity | [optional]
|
10
11
|
|
11
12
|
|
data/docs/ReportDataSet.md
CHANGED
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
|
|
7
7
|
**data_set_uuid** | **String** | A unique identifier assigned to the data set that is returned. | [optional]
|
8
8
|
**destination_table_id** | **String** | The BigQuery destination table id that contains the result. | [optional]
|
9
9
|
**error_message** | **String** | Error message if the query failed. | [optional]
|
10
|
+
**executed_sql** | **String** | | [optional]
|
10
11
|
**for_object_id** | **String** | An identifier that can be used to help match up the returned data set | [optional]
|
11
12
|
**for_object_type** | **String** | The type of object this data set is for | [optional]
|
12
13
|
**initial_pages** | [**Array<ReportDataSetPage>**](ReportDataSetPage.md) | Initial pages returned in the dataset | [optional]
|
@@ -624,7 +624,7 @@ module UltracartClient
|
|
624
624
|
end
|
625
625
|
return data, status_code, headers
|
626
626
|
end
|
627
|
-
#
|
627
|
+
# Get a review
|
628
628
|
# Retrieve an item review.
|
629
629
|
# @param review_oid The review oid to retrieve.
|
630
630
|
# @param merchant_item_oid The item oid the review is associated with.
|
@@ -635,7 +635,7 @@ module UltracartClient
|
|
635
635
|
data
|
636
636
|
end
|
637
637
|
|
638
|
-
#
|
638
|
+
# Get a review
|
639
639
|
# Retrieve an item review.
|
640
640
|
# @param review_oid The review oid to retrieve.
|
641
641
|
# @param merchant_item_oid The item oid the review is associated with.
|
@@ -685,7 +685,7 @@ module UltracartClient
|
|
685
685
|
end
|
686
686
|
return data, status_code, headers
|
687
687
|
end
|
688
|
-
#
|
688
|
+
# Get reviews for an item
|
689
689
|
# Retrieve item reviews.
|
690
690
|
# @param merchant_item_oid The item oid the review is associated with.
|
691
691
|
# @param [Hash] opts the optional parameters
|
@@ -695,7 +695,7 @@ module UltracartClient
|
|
695
695
|
data
|
696
696
|
end
|
697
697
|
|
698
|
-
#
|
698
|
+
# Get reviews for an item
|
699
699
|
# Retrieve item reviews.
|
700
700
|
# @param merchant_item_oid The item oid the review is associated with.
|
701
701
|
# @param [Hash] opts the optional parameters
|
@@ -35,6 +35,9 @@ module UltracartClient
|
|
35
35
|
# Primary key of AutoOrderItem
|
36
36
|
attr_accessor :auto_order_item_oid
|
37
37
|
|
38
|
+
# Date/time of the first order of this item. Null if item added to auto order and has not been rebilled yet.
|
39
|
+
attr_accessor :first_order_dts
|
40
|
+
|
38
41
|
# Frequency of the rebill if not a fixed schedule
|
39
42
|
attr_accessor :frequency
|
40
43
|
|
@@ -68,6 +71,9 @@ module UltracartClient
|
|
68
71
|
# The original quantity purchased
|
69
72
|
attr_accessor :original_quantity
|
70
73
|
|
74
|
+
# True if paused. This field is an object instead of a primitive for backwards compatibility.
|
75
|
+
attr_accessor :paused
|
76
|
+
|
71
77
|
# The PayPal Payer ID tied to this item
|
72
78
|
attr_accessor :paypal_payer_id
|
73
79
|
|
@@ -117,6 +123,7 @@ module UltracartClient
|
|
117
123
|
:'arbitrary_unit_cost' => :'arbitrary_unit_cost',
|
118
124
|
:'arbitrary_unit_cost_remaining_orders' => :'arbitrary_unit_cost_remaining_orders',
|
119
125
|
:'auto_order_item_oid' => :'auto_order_item_oid',
|
126
|
+
:'first_order_dts' => :'first_order_dts',
|
120
127
|
:'frequency' => :'frequency',
|
121
128
|
:'future_schedules' => :'future_schedules',
|
122
129
|
:'last_order_dts' => :'last_order_dts',
|
@@ -128,6 +135,7 @@ module UltracartClient
|
|
128
135
|
:'options' => :'options',
|
129
136
|
:'original_item_id' => :'original_item_id',
|
130
137
|
:'original_quantity' => :'original_quantity',
|
138
|
+
:'paused' => :'paused',
|
131
139
|
:'paypal_payer_id' => :'paypal_payer_id',
|
132
140
|
:'paypal_recurring_payment_profile_id' => :'paypal_recurring_payment_profile_id',
|
133
141
|
:'preshipment_notice_sent' => :'preshipment_notice_sent',
|
@@ -147,6 +155,7 @@ module UltracartClient
|
|
147
155
|
:'arbitrary_unit_cost' => :'Float',
|
148
156
|
:'arbitrary_unit_cost_remaining_orders' => :'Integer',
|
149
157
|
:'auto_order_item_oid' => :'Integer',
|
158
|
+
:'first_order_dts' => :'String',
|
150
159
|
:'frequency' => :'String',
|
151
160
|
:'future_schedules' => :'Array<AutoOrderItemFutureSchedule>',
|
152
161
|
:'last_order_dts' => :'String',
|
@@ -158,6 +167,7 @@ module UltracartClient
|
|
158
167
|
:'options' => :'Array<AutoOrderItemOption>',
|
159
168
|
:'original_item_id' => :'String',
|
160
169
|
:'original_quantity' => :'Float',
|
170
|
+
:'paused' => :'BOOLEAN',
|
161
171
|
:'paypal_payer_id' => :'String',
|
162
172
|
:'paypal_recurring_payment_profile_id' => :'String',
|
163
173
|
:'preshipment_notice_sent' => :'BOOLEAN',
|
@@ -203,6 +213,10 @@ module UltracartClient
|
|
203
213
|
self.auto_order_item_oid = attributes[:'auto_order_item_oid']
|
204
214
|
end
|
205
215
|
|
216
|
+
if attributes.has_key?(:'first_order_dts')
|
217
|
+
self.first_order_dts = attributes[:'first_order_dts']
|
218
|
+
end
|
219
|
+
|
206
220
|
if attributes.has_key?(:'frequency')
|
207
221
|
self.frequency = attributes[:'frequency']
|
208
222
|
end
|
@@ -251,6 +265,10 @@ module UltracartClient
|
|
251
265
|
self.original_quantity = attributes[:'original_quantity']
|
252
266
|
end
|
253
267
|
|
268
|
+
if attributes.has_key?(:'paused')
|
269
|
+
self.paused = attributes[:'paused']
|
270
|
+
end
|
271
|
+
|
254
272
|
if attributes.has_key?(:'paypal_payer_id')
|
255
273
|
self.paypal_payer_id = attributes[:'paypal_payer_id']
|
256
274
|
end
|
@@ -313,6 +331,7 @@ module UltracartClient
|
|
313
331
|
arbitrary_unit_cost == o.arbitrary_unit_cost &&
|
314
332
|
arbitrary_unit_cost_remaining_orders == o.arbitrary_unit_cost_remaining_orders &&
|
315
333
|
auto_order_item_oid == o.auto_order_item_oid &&
|
334
|
+
first_order_dts == o.first_order_dts &&
|
316
335
|
frequency == o.frequency &&
|
317
336
|
future_schedules == o.future_schedules &&
|
318
337
|
last_order_dts == o.last_order_dts &&
|
@@ -324,6 +343,7 @@ module UltracartClient
|
|
324
343
|
options == o.options &&
|
325
344
|
original_item_id == o.original_item_id &&
|
326
345
|
original_quantity == o.original_quantity &&
|
346
|
+
paused == o.paused &&
|
327
347
|
paypal_payer_id == o.paypal_payer_id &&
|
328
348
|
paypal_recurring_payment_profile_id == o.paypal_recurring_payment_profile_id &&
|
329
349
|
preshipment_notice_sent == o.preshipment_notice_sent &&
|
@@ -341,7 +361,7 @@ module UltracartClient
|
|
341
361
|
# Calculates hash code according to all attributes.
|
342
362
|
# @return [Fixnum] Hash code
|
343
363
|
def hash
|
344
|
-
[arbitrary_item_id, arbitrary_percentage_discount, arbitrary_quantity, arbitrary_schedule_days, arbitrary_unit_cost, arbitrary_unit_cost_remaining_orders, auto_order_item_oid, frequency, future_schedules, last_order_dts, life_time_value, next_preshipment_notice_dts, next_shipment_dts, no_order_after_dts, number_of_rebills, options, original_item_id, original_quantity, paypal_payer_id, paypal_recurring_payment_profile_id, preshipment_notice_sent, rebill_value, remaining_repeat_count, simple_schedule].hash
|
364
|
+
[arbitrary_item_id, arbitrary_percentage_discount, arbitrary_quantity, arbitrary_schedule_days, arbitrary_unit_cost, arbitrary_unit_cost_remaining_orders, auto_order_item_oid, first_order_dts, frequency, future_schedules, last_order_dts, life_time_value, next_preshipment_notice_dts, next_shipment_dts, no_order_after_dts, number_of_rebills, options, original_item_id, original_quantity, paused, paypal_payer_id, paypal_recurring_payment_profile_id, preshipment_notice_sent, rebill_value, remaining_repeat_count, simple_schedule].hash
|
345
365
|
end
|
346
366
|
|
347
367
|
# Builds the object from hash
|
@@ -26,13 +26,17 @@ module UltracartClient
|
|
26
26
|
# Multiple quantity
|
27
27
|
attr_accessor :multiple_quantity
|
28
28
|
|
29
|
+
# Payment method validity
|
30
|
+
attr_accessor :payment_method_validity
|
31
|
+
|
29
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
30
33
|
def self.attribute_map
|
31
34
|
{
|
32
35
|
:'cumulative_order_limit' => :'cumulative_order_limit',
|
33
36
|
:'exempt_from_minimum_item_count' => :'exempt_from_minimum_item_count',
|
34
37
|
:'individual_order_limit' => :'individual_order_limit',
|
35
|
-
:'multiple_quantity' => :'multiple_quantity'
|
38
|
+
:'multiple_quantity' => :'multiple_quantity',
|
39
|
+
:'payment_method_validity' => :'payment_method_validity'
|
36
40
|
}
|
37
41
|
end
|
38
42
|
|
@@ -42,7 +46,8 @@ module UltracartClient
|
|
42
46
|
:'cumulative_order_limit' => :'Integer',
|
43
47
|
:'exempt_from_minimum_item_count' => :'BOOLEAN',
|
44
48
|
:'individual_order_limit' => :'Integer',
|
45
|
-
:'multiple_quantity' => :'Integer'
|
49
|
+
:'multiple_quantity' => :'Integer',
|
50
|
+
:'payment_method_validity' => :'Array<String>'
|
46
51
|
}
|
47
52
|
end
|
48
53
|
|
@@ -69,6 +74,12 @@ module UltracartClient
|
|
69
74
|
if attributes.has_key?(:'multiple_quantity')
|
70
75
|
self.multiple_quantity = attributes[:'multiple_quantity']
|
71
76
|
end
|
77
|
+
|
78
|
+
if attributes.has_key?(:'payment_method_validity')
|
79
|
+
if (value = attributes[:'payment_method_validity']).is_a?(Array)
|
80
|
+
self.payment_method_validity = value
|
81
|
+
end
|
82
|
+
end
|
72
83
|
end
|
73
84
|
|
74
85
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -92,7 +103,8 @@ module UltracartClient
|
|
92
103
|
cumulative_order_limit == o.cumulative_order_limit &&
|
93
104
|
exempt_from_minimum_item_count == o.exempt_from_minimum_item_count &&
|
94
105
|
individual_order_limit == o.individual_order_limit &&
|
95
|
-
multiple_quantity == o.multiple_quantity
|
106
|
+
multiple_quantity == o.multiple_quantity &&
|
107
|
+
payment_method_validity == o.payment_method_validity
|
96
108
|
end
|
97
109
|
|
98
110
|
# @see the `==` method
|
@@ -104,7 +116,7 @@ module UltracartClient
|
|
104
116
|
# Calculates hash code according to all attributes.
|
105
117
|
# @return [Fixnum] Hash code
|
106
118
|
def hash
|
107
|
-
[cumulative_order_limit, exempt_from_minimum_item_count, individual_order_limit, multiple_quantity].hash
|
119
|
+
[cumulative_order_limit, exempt_from_minimum_item_count, individual_order_limit, multiple_quantity, payment_method_validity].hash
|
108
120
|
end
|
109
121
|
|
110
122
|
# Builds the object from hash
|
@@ -225,7 +225,7 @@ module UltracartClient
|
|
225
225
|
# Check to see if the all the properties in the model are valid
|
226
226
|
# @return true if the model is valid
|
227
227
|
def valid?
|
228
|
-
payment_method_validator = EnumAttributeValidator.new('String', ['Affirm', 'Amazon', 'Amazon SC', 'Cash', 'Check', 'COD', 'Credit Card', 'eBay', 'eCheck', 'Google Shopping', 'Insurance', 'LoanHero', 'Money Order', 'PayPal', 'Purchase Order', 'Quote Request', 'Unknown', 'Wire Transfer', 'Walmart', 'Shop.com', 'Sezzle'])
|
228
|
+
payment_method_validator = EnumAttributeValidator.new('String', ['Affirm', 'Amazon', 'Amazon SC', 'Cash', 'Check', 'COD', 'Credit Card', 'eBay', 'eCheck', 'Google Shopping', 'Insurance', 'LoanHero', 'Money Order', 'PayPal', 'Purchase Order', 'Quote Request', 'Unknown', 'Wire Transfer', 'Walmart', 'Shop.com', 'Sezzle', 'Venmo'])
|
229
229
|
return false unless payment_method_validator.valid?(@payment_method)
|
230
230
|
payment_status_validator = EnumAttributeValidator.new('String', ['Unprocessed', 'Authorized', 'Capture Failed', 'Processed', 'Declined', 'Voided', 'Refunded', 'Skipped'])
|
231
231
|
return false unless payment_status_validator.valid?(@payment_status)
|
@@ -235,7 +235,7 @@ module UltracartClient
|
|
235
235
|
# Custom attribute writer method checking allowed values (enum).
|
236
236
|
# @param [Object] payment_method Object to be assigned
|
237
237
|
def payment_method=(payment_method)
|
238
|
-
validator = EnumAttributeValidator.new('String', ['Affirm', 'Amazon', 'Amazon SC', 'Cash', 'Check', 'COD', 'Credit Card', 'eBay', 'eCheck', 'Google Shopping', 'Insurance', 'LoanHero', 'Money Order', 'PayPal', 'Purchase Order', 'Quote Request', 'Unknown', 'Wire Transfer', 'Walmart', 'Shop.com', 'Sezzle'])
|
238
|
+
validator = EnumAttributeValidator.new('String', ['Affirm', 'Amazon', 'Amazon SC', 'Cash', 'Check', 'COD', 'Credit Card', 'eBay', 'eCheck', 'Google Shopping', 'Insurance', 'LoanHero', 'Money Order', 'PayPal', 'Purchase Order', 'Quote Request', 'Unknown', 'Wire Transfer', 'Walmart', 'Shop.com', 'Sezzle', 'Venmo'])
|
239
239
|
unless validator.valid?(payment_method)
|
240
240
|
fail ArgumentError, 'invalid value for "payment_method", must be one of #{validator.allowable_values}.'
|
241
241
|
end
|
@@ -26,6 +26,8 @@ module UltracartClient
|
|
26
26
|
# Error message if the query failed.
|
27
27
|
attr_accessor :error_message
|
28
28
|
|
29
|
+
attr_accessor :executed_sql
|
30
|
+
|
29
31
|
# An identifier that can be used to help match up the returned data set
|
30
32
|
attr_accessor :for_object_id
|
31
33
|
|
@@ -87,6 +89,7 @@ module UltracartClient
|
|
87
89
|
:'data_set_uuid' => :'data_set_uuid',
|
88
90
|
:'destination_table_id' => :'destination_table_id',
|
89
91
|
:'error_message' => :'error_message',
|
92
|
+
:'executed_sql' => :'executed_sql',
|
90
93
|
:'for_object_id' => :'for_object_id',
|
91
94
|
:'for_object_type' => :'for_object_type',
|
92
95
|
:'initial_pages' => :'initial_pages',
|
@@ -108,6 +111,7 @@ module UltracartClient
|
|
108
111
|
:'data_set_uuid' => :'String',
|
109
112
|
:'destination_table_id' => :'String',
|
110
113
|
:'error_message' => :'String',
|
114
|
+
:'executed_sql' => :'String',
|
111
115
|
:'for_object_id' => :'String',
|
112
116
|
:'for_object_type' => :'String',
|
113
117
|
:'initial_pages' => :'Array<ReportDataSetPage>',
|
@@ -146,6 +150,10 @@ module UltracartClient
|
|
146
150
|
self.error_message = attributes[:'error_message']
|
147
151
|
end
|
148
152
|
|
153
|
+
if attributes.has_key?(:'executed_sql')
|
154
|
+
self.executed_sql = attributes[:'executed_sql']
|
155
|
+
end
|
156
|
+
|
149
157
|
if attributes.has_key?(:'for_object_id')
|
150
158
|
self.for_object_id = attributes[:'for_object_id']
|
151
159
|
end
|
@@ -229,6 +237,7 @@ module UltracartClient
|
|
229
237
|
data_set_uuid == o.data_set_uuid &&
|
230
238
|
destination_table_id == o.destination_table_id &&
|
231
239
|
error_message == o.error_message &&
|
240
|
+
executed_sql == o.executed_sql &&
|
232
241
|
for_object_id == o.for_object_id &&
|
233
242
|
for_object_type == o.for_object_type &&
|
234
243
|
initial_pages == o.initial_pages &&
|
@@ -251,7 +260,7 @@ module UltracartClient
|
|
251
260
|
# Calculates hash code according to all attributes.
|
252
261
|
# @return [Fixnum] Hash code
|
253
262
|
def hash
|
254
|
-
[data_set_query_uuid, data_set_uuid, destination_table_id, error_message, for_object_id, for_object_type, initial_pages, max_results, merchant_id, page_count, page_size, schema, security_level, timezone, user_data].hash
|
263
|
+
[data_set_query_uuid, data_set_uuid, destination_table_id, error_message, executed_sql, for_object_id, for_object_type, initial_pages, max_results, merchant_id, page_count, page_size, schema, security_level, timezone, user_data].hash
|
255
264
|
end
|
256
265
|
|
257
266
|
# 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.10.
|
4
|
+
version: 3.10.139
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- UltraCart
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-05-
|
11
|
+
date: 2023-05-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|