ultracart_api 4.0.154 → 4.0.156

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 26b3c13189274ce0cbd16a0775d373a8c88bf9e1f8cea27e162369412f4c206f
4
- data.tar.gz: d641791b35121d7f3c445bf82a9374bddf5f2cf058ff07d33efc5e37ac4e3fd2
3
+ metadata.gz: e705bd889e61675a6d1dcf5f45b6fa5a023e568448cb2cb55b004f33261e809b
4
+ data.tar.gz: 8d152b8c7ca6514947e6e89ec6f09023dc3f22fac87e012cb4a2999e3b0c1ad8
5
5
  SHA512:
6
- metadata.gz: f80331ee8245e455606f5f9a66ebaeebe8ddf10a211b6a492a7ff9ca6ad1cda7a8c8b2a9aa8af39d896997b4cbe0a0ebaf8382fcbcf6069c5e716774e946141d
7
- data.tar.gz: 6053780afe674adb0af48d542c018059bf237c7669d252fe3937dfd96f332d488cedfbfe0ce59a6036a9cbb0a45239e82f295c7f9d53c3b726e5b09995018267
6
+ metadata.gz: 310c9ee4dbb0b11c98f90c9000eaeaefb34f0d103afcd89b1ec72666a5516c35c49910fe6ee65f41a9c9ff66fbae5f538d12dcaab95f74f702a30baff743ca48
7
+ data.tar.gz: ef21bd3706908d06cf51b6db80877291c1f1fbecc8e87bf20af0478f953f27f62f609285467d246130d238465b321900c013826ed44033a7dc0fb4fb1ba068d9
data/README.md CHANGED
@@ -7,7 +7,7 @@ UltraCart REST API Version 2
7
7
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
8
8
 
9
9
  - API version: 2.0.0
10
- - Package version: 4.0.154
10
+ - Package version: 4.0.156
11
11
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
12
12
  For more information, please visit [http://www.ultracart.com](http://www.ultracart.com)
13
13
 
@@ -24,16 +24,16 @@ gem build ultracart_api.gemspec
24
24
  Then either install the gem locally:
25
25
 
26
26
  ```shell
27
- gem install ./ultracart_api-4.0.154.gem
27
+ gem install ./ultracart_api-4.0.156.gem
28
28
  ```
29
29
 
30
- (for development, run `gem install --dev ./ultracart_api-4.0.154.gem` to install the development dependencies)
30
+ (for development, run `gem install --dev ./ultracart_api-4.0.156.gem` to install the development dependencies)
31
31
 
32
32
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
33
33
 
34
34
  Finally add this to the Gemfile:
35
35
 
36
- gem 'ultracart_api', '~> 4.0.154'
36
+ gem 'ultracart_api', '~> 4.0.156'
37
37
 
38
38
  ### Install from Git
39
39
 
@@ -249,8 +249,8 @@ Class | Method | HTTP request | Description
249
249
  *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
250
250
  *UltracartClient::ItemApi* | [**get_items**](docs/ItemApi.md#get_items) | **GET** /item/items | Retrieve items
251
251
  *UltracartClient::ItemApi* | [**get_pricing_tiers**](docs/ItemApi.md#get_pricing_tiers) | **GET** /item/pricing_tiers | Retrieve pricing tiers
252
- *UltracartClient::ItemApi* | [**get_review**](docs/ItemApi.md#get_review) | **GET** /item/items/{merchant_item_oid}/reviews/{review_oid} | get a review
253
- *UltracartClient::ItemApi* | [**get_reviews**](docs/ItemApi.md#get_reviews) | **GET** /item/items/{merchant_item_oid}/reviews | get reviews for an item
252
+ *UltracartClient::ItemApi* | [**get_review**](docs/ItemApi.md#get_review) | **GET** /item/items/{merchant_item_oid}/reviews/{review_oid} | Get a review
253
+ *UltracartClient::ItemApi* | [**get_reviews**](docs/ItemApi.md#get_reviews) | **GET** /item/items/{merchant_item_oid}/reviews | Get reviews for an item
254
254
  *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
255
255
  *UltracartClient::ItemApi* | [**insert_digital_item**](docs/ItemApi.md#insert_digital_item) | **POST** /item/digital_library | Create a file within the digital library
256
256
  *UltracartClient::ItemApi* | [**insert_item**](docs/ItemApi.md#insert_item) | **POST** /item/items | Create an item
@@ -1362,6 +1362,8 @@ Not every change is committed to every SDK.
1362
1362
 
1363
1363
  | Version | Date | Comments |
1364
1364
  | --: | :-: | --- |
1365
+ | 4.0.156 | 05/25/2023 | added venmo constants for payment type |
1366
+ | 4.0.155 | 05/18/2023 | dw bi - send back the executed SQL |
1365
1367
  | 4.0.154 | 05/04/2023 | item api added methods for items reviews |
1366
1368
  | 4.0.153 | 04/28/2023 | item - pricing tier level flag for exempt from min item count |
1367
1369
  | 4.0.152 | 04/27/2023 | order - expose dual vaulted identifiers |
@@ -11,6 +11,7 @@
11
11
  | **arbitrary_unit_cost** | **Float** | Arbitrary unit cost that rebills of this item should occur at | [optional] |
12
12
  | **arbitrary_unit_cost_remaining_orders** | **Integer** | The number of rebills to give the arbitrary unit cost on before reverting to normal pricing. | [optional] |
13
13
  | **auto_order_item_oid** | **Integer** | Primary key of AutoOrderItem | [optional] |
14
+ | **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] |
14
15
  | **frequency** | **String** | Frequency of the rebill if not a fixed schedule | [optional] |
15
16
  | **future_schedules** | [**Array<AutoOrderItemFutureSchedule>**](AutoOrderItemFutureSchedule.md) | The future rebill schedule for this item up to the next ten rebills | [optional] |
16
17
  | **last_order_dts** | **String** | Date/time of the last order of this item | [optional] |
@@ -22,6 +23,7 @@
22
23
  | **options** | [**Array<AutoOrderItemOption>**](AutoOrderItemOption.md) | Options associated with this item | [optional] |
23
24
  | **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] |
24
25
  | **original_quantity** | **Float** | The original quantity purchased | [optional] |
26
+ | **paused** | **Boolean** | True if paused. This field is an object instead of a primitive for backwards compatibility. | [optional] |
25
27
  | **paypal_payer_id** | **String** | The PayPal Payer ID tied to this item | [optional] |
26
28
  | **paypal_recurring_payment_profile_id** | **String** | The PayPal Profile ID tied to this item | [optional] |
27
29
  | **preshipment_notice_sent** | **Boolean** | True if the preshipment notice associated with the next rebill has been sent | [optional] |
@@ -42,6 +44,7 @@ instance = UltracartClient::AutoOrderItem.new(
42
44
  arbitrary_unit_cost: null,
43
45
  arbitrary_unit_cost_remaining_orders: null,
44
46
  auto_order_item_oid: null,
47
+ first_order_dts: null,
45
48
  frequency: null,
46
49
  future_schedules: null,
47
50
  last_order_dts: null,
@@ -53,6 +56,7 @@ instance = UltracartClient::AutoOrderItem.new(
53
56
  options: null,
54
57
  original_item_id: null,
55
58
  original_quantity: null,
59
+ paused: null,
56
60
  paypal_payer_id: null,
57
61
  paypal_recurring_payment_profile_id: null,
58
62
  preshipment_notice_sent: null,
data/docs/ItemApi.md CHANGED
@@ -14,8 +14,8 @@ All URIs are relative to *https://secure.ultracart.com/rest/v2*
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} | get a review |
18
- | [**get_reviews**](ItemApi.md#get_reviews) | **GET** /item/items/{merchant_item_oid}/reviews | get reviews for an item |
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 |
@@ -782,7 +782,7 @@ end
782
782
 
783
783
  > <ItemReviewResponse> get_review(review_oid, merchant_item_oid)
784
784
 
785
- get a review
785
+ Get a review
786
786
 
787
787
  Retrieve an item review.
788
788
 
@@ -804,7 +804,7 @@ review_oid = 56 # Integer | The review oid to retrieve.
804
804
  merchant_item_oid = 56 # Integer | The item oid the review is associated with.
805
805
 
806
806
  begin
807
- # get a review
807
+ # Get a review
808
808
  result = api_instance.get_review(review_oid, merchant_item_oid)
809
809
  p result
810
810
  rescue UltracartClient::ApiError => e
@@ -820,7 +820,7 @@ This returns an Array which contains the response data, status code and headers.
820
820
 
821
821
  ```ruby
822
822
  begin
823
- # get a review
823
+ # Get a review
824
824
  data, status_code, headers = api_instance.get_review_with_http_info(review_oid, merchant_item_oid)
825
825
  p status_code # => 2xx
826
826
  p headers # => { ... }
@@ -855,7 +855,7 @@ end
855
855
 
856
856
  > <ItemReviewsResponse> get_reviews(merchant_item_oid)
857
857
 
858
- get reviews for an item
858
+ Get reviews for an item
859
859
 
860
860
  Retrieve item reviews.
861
861
 
@@ -876,7 +876,7 @@ api = UltracartClient::ItemApi.new_using_api_key(Constants::API_KEY, Constants::
876
876
  merchant_item_oid = 56 # Integer | The item oid the review is associated with.
877
877
 
878
878
  begin
879
- # get reviews for an item
879
+ # Get reviews for an item
880
880
  result = api_instance.get_reviews(merchant_item_oid)
881
881
  p result
882
882
  rescue UltracartClient::ApiError => e
@@ -892,7 +892,7 @@ This returns an Array which contains the response data, status code and headers.
892
892
 
893
893
  ```ruby
894
894
  begin
895
- # get reviews for an item
895
+ # Get reviews for an item
896
896
  data, status_code, headers = api_instance.get_reviews_with_http_info(merchant_item_oid)
897
897
  p status_code # => 2xx
898
898
  p headers # => { ... }
@@ -8,6 +8,7 @@
8
8
  | **exempt_from_minimum_item_count** | **Boolean** | Exempt from Minimum Item Count | [optional] |
9
9
  | **individual_order_limit** | **Integer** | Individual order limit | [optional] |
10
10
  | **multiple_quantity** | **Integer** | Multiple quantity | [optional] |
11
+ | **payment_method_validity** | **Array&lt;String&gt;** | Payment method validity | [optional] |
11
12
 
12
13
  ## Example
13
14
 
@@ -18,7 +19,8 @@ instance = UltracartClient::ItemPricingTierLimit.new(
18
19
  cumulative_order_limit: null,
19
20
  exempt_from_minimum_item_count: null,
20
21
  individual_order_limit: null,
21
- multiple_quantity: null
22
+ multiple_quantity: null,
23
+ payment_method_validity: null
22
24
  )
23
25
  ```
24
26
 
@@ -8,6 +8,7 @@
8
8
  | **data_set_uuid** | **String** | A unique identifier assigned to the data set that is returned. | [optional] |
9
9
  | **destination_table_id** | **String** | The BigQuery destination table id that contains the result. | [optional] |
10
10
  | **error_message** | **String** | Error message if the query failed. | [optional] |
11
+ | **executed_sql** | **String** | | [optional] |
11
12
  | **for_object_id** | **String** | An identifier that can be used to help match up the returned data set | [optional] |
12
13
  | **for_object_type** | **String** | The type of object this data set is for | [optional] |
13
14
  | **initial_pages** | [**Array&lt;ReportDataSetPage&gt;**](ReportDataSetPage.md) | Initial pages returned in the dataset | [optional] |
@@ -30,6 +31,7 @@ instance = UltracartClient::ReportDataSet.new(
30
31
  data_set_uuid: null,
31
32
  destination_table_id: null,
32
33
  error_message: null,
34
+ executed_sql: null,
33
35
  for_object_id: null,
34
36
  for_object_type: null,
35
37
  initial_pages: null,
@@ -717,7 +717,7 @@ module UltracartClient
717
717
  return data, status_code, headers
718
718
  end
719
719
 
720
- # get a review
720
+ # Get a review
721
721
  # Retrieve an item review.
722
722
  # @param review_oid [Integer] The review oid to retrieve.
723
723
  # @param merchant_item_oid [Integer] The item oid the review is associated with.
@@ -728,7 +728,7 @@ module UltracartClient
728
728
  data
729
729
  end
730
730
 
731
- # get a review
731
+ # Get a review
732
732
  # Retrieve an item review.
733
733
  # @param review_oid [Integer] The review oid to retrieve.
734
734
  # @param merchant_item_oid [Integer] The item oid the review is associated with.
@@ -787,7 +787,7 @@ module UltracartClient
787
787
  return data, status_code, headers
788
788
  end
789
789
 
790
- # get reviews for an item
790
+ # Get reviews for an item
791
791
  # Retrieve item reviews.
792
792
  # @param merchant_item_oid [Integer] The item oid the review is associated with.
793
793
  # @param [Hash] opts the optional parameters
@@ -797,7 +797,7 @@ module UltracartClient
797
797
  data
798
798
  end
799
799
 
800
- # get reviews for an item
800
+ # Get reviews for an item
801
801
  # Retrieve item reviews.
802
802
  # @param merchant_item_oid [Integer] The item oid the review is associated with.
803
803
  # @param [Hash] opts the optional parameters
@@ -36,6 +36,9 @@ module UltracartClient
36
36
  # Primary key of AutoOrderItem
37
37
  attr_accessor :auto_order_item_oid
38
38
 
39
+ # Date/time of the first order of this item. Null if item added to auto order and has not been rebilled yet.
40
+ attr_accessor :first_order_dts
41
+
39
42
  # Frequency of the rebill if not a fixed schedule
40
43
  attr_accessor :frequency
41
44
 
@@ -69,6 +72,9 @@ module UltracartClient
69
72
  # The original quantity purchased
70
73
  attr_accessor :original_quantity
71
74
 
75
+ # True if paused. This field is an object instead of a primitive for backwards compatibility.
76
+ attr_accessor :paused
77
+
72
78
  # The PayPal Payer ID tied to this item
73
79
  attr_accessor :paypal_payer_id
74
80
 
@@ -118,6 +124,7 @@ module UltracartClient
118
124
  :'arbitrary_unit_cost' => :'arbitrary_unit_cost',
119
125
  :'arbitrary_unit_cost_remaining_orders' => :'arbitrary_unit_cost_remaining_orders',
120
126
  :'auto_order_item_oid' => :'auto_order_item_oid',
127
+ :'first_order_dts' => :'first_order_dts',
121
128
  :'frequency' => :'frequency',
122
129
  :'future_schedules' => :'future_schedules',
123
130
  :'last_order_dts' => :'last_order_dts',
@@ -129,6 +136,7 @@ module UltracartClient
129
136
  :'options' => :'options',
130
137
  :'original_item_id' => :'original_item_id',
131
138
  :'original_quantity' => :'original_quantity',
139
+ :'paused' => :'paused',
132
140
  :'paypal_payer_id' => :'paypal_payer_id',
133
141
  :'paypal_recurring_payment_profile_id' => :'paypal_recurring_payment_profile_id',
134
142
  :'preshipment_notice_sent' => :'preshipment_notice_sent',
@@ -153,6 +161,7 @@ module UltracartClient
153
161
  :'arbitrary_unit_cost' => :'Float',
154
162
  :'arbitrary_unit_cost_remaining_orders' => :'Integer',
155
163
  :'auto_order_item_oid' => :'Integer',
164
+ :'first_order_dts' => :'String',
156
165
  :'frequency' => :'String',
157
166
  :'future_schedules' => :'Array<AutoOrderItemFutureSchedule>',
158
167
  :'last_order_dts' => :'String',
@@ -164,6 +173,7 @@ module UltracartClient
164
173
  :'options' => :'Array<AutoOrderItemOption>',
165
174
  :'original_item_id' => :'String',
166
175
  :'original_quantity' => :'Float',
176
+ :'paused' => :'Boolean',
167
177
  :'paypal_payer_id' => :'String',
168
178
  :'paypal_recurring_payment_profile_id' => :'String',
169
179
  :'preshipment_notice_sent' => :'Boolean',
@@ -222,6 +232,10 @@ module UltracartClient
222
232
  self.auto_order_item_oid = attributes[:'auto_order_item_oid']
223
233
  end
224
234
 
235
+ if attributes.key?(:'first_order_dts')
236
+ self.first_order_dts = attributes[:'first_order_dts']
237
+ end
238
+
225
239
  if attributes.key?(:'frequency')
226
240
  self.frequency = attributes[:'frequency']
227
241
  end
@@ -270,6 +284,10 @@ module UltracartClient
270
284
  self.original_quantity = attributes[:'original_quantity']
271
285
  end
272
286
 
287
+ if attributes.key?(:'paused')
288
+ self.paused = attributes[:'paused']
289
+ end
290
+
273
291
  if attributes.key?(:'paypal_payer_id')
274
292
  self.paypal_payer_id = attributes[:'paypal_payer_id']
275
293
  end
@@ -332,6 +350,7 @@ module UltracartClient
332
350
  arbitrary_unit_cost == o.arbitrary_unit_cost &&
333
351
  arbitrary_unit_cost_remaining_orders == o.arbitrary_unit_cost_remaining_orders &&
334
352
  auto_order_item_oid == o.auto_order_item_oid &&
353
+ first_order_dts == o.first_order_dts &&
335
354
  frequency == o.frequency &&
336
355
  future_schedules == o.future_schedules &&
337
356
  last_order_dts == o.last_order_dts &&
@@ -343,6 +362,7 @@ module UltracartClient
343
362
  options == o.options &&
344
363
  original_item_id == o.original_item_id &&
345
364
  original_quantity == o.original_quantity &&
365
+ paused == o.paused &&
346
366
  paypal_payer_id == o.paypal_payer_id &&
347
367
  paypal_recurring_payment_profile_id == o.paypal_recurring_payment_profile_id &&
348
368
  preshipment_notice_sent == o.preshipment_notice_sent &&
@@ -360,7 +380,7 @@ module UltracartClient
360
380
  # Calculates hash code according to all attributes.
361
381
  # @return [Integer] Hash code
362
382
  def hash
363
- [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
383
+ [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
364
384
  end
365
385
 
366
386
  # Builds the object from hash
@@ -27,13 +27,17 @@ module UltracartClient
27
27
  # Multiple quantity
28
28
  attr_accessor :multiple_quantity
29
29
 
30
+ # Payment method validity
31
+ attr_accessor :payment_method_validity
32
+
30
33
  # Attribute mapping from ruby-style variable name to JSON key.
31
34
  def self.attribute_map
32
35
  {
33
36
  :'cumulative_order_limit' => :'cumulative_order_limit',
34
37
  :'exempt_from_minimum_item_count' => :'exempt_from_minimum_item_count',
35
38
  :'individual_order_limit' => :'individual_order_limit',
36
- :'multiple_quantity' => :'multiple_quantity'
39
+ :'multiple_quantity' => :'multiple_quantity',
40
+ :'payment_method_validity' => :'payment_method_validity'
37
41
  }
38
42
  end
39
43
 
@@ -48,7 +52,8 @@ module UltracartClient
48
52
  :'cumulative_order_limit' => :'Integer',
49
53
  :'exempt_from_minimum_item_count' => :'Boolean',
50
54
  :'individual_order_limit' => :'Integer',
51
- :'multiple_quantity' => :'Integer'
55
+ :'multiple_quantity' => :'Integer',
56
+ :'payment_method_validity' => :'Array<String>'
52
57
  }
53
58
  end
54
59
 
@@ -88,6 +93,12 @@ module UltracartClient
88
93
  if attributes.key?(:'multiple_quantity')
89
94
  self.multiple_quantity = attributes[:'multiple_quantity']
90
95
  end
96
+
97
+ if attributes.key?(:'payment_method_validity')
98
+ if (value = attributes[:'payment_method_validity']).is_a?(Array)
99
+ self.payment_method_validity = value
100
+ end
101
+ end
91
102
  end
92
103
 
93
104
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -111,7 +122,8 @@ module UltracartClient
111
122
  cumulative_order_limit == o.cumulative_order_limit &&
112
123
  exempt_from_minimum_item_count == o.exempt_from_minimum_item_count &&
113
124
  individual_order_limit == o.individual_order_limit &&
114
- multiple_quantity == o.multiple_quantity
125
+ multiple_quantity == o.multiple_quantity &&
126
+ payment_method_validity == o.payment_method_validity
115
127
  end
116
128
 
117
129
  # @see the `==` method
@@ -123,7 +135,7 @@ module UltracartClient
123
135
  # Calculates hash code according to all attributes.
124
136
  # @return [Integer] Hash code
125
137
  def hash
126
- [cumulative_order_limit, exempt_from_minimum_item_count, individual_order_limit, multiple_quantity].hash
138
+ [cumulative_order_limit, exempt_from_minimum_item_count, individual_order_limit, multiple_quantity, payment_method_validity].hash
127
139
  end
128
140
 
129
141
  # Builds the object from hash
@@ -244,7 +244,7 @@ module UltracartClient
244
244
  # Check to see if the all the properties in the model are valid
245
245
  # @return true if the model is valid
246
246
  def valid?
247
- 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"])
247
+ 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"])
248
248
  return false unless payment_method_validator.valid?(@payment_method)
249
249
  payment_status_validator = EnumAttributeValidator.new('String', ["Unprocessed", "Authorized", "Capture Failed", "Processed", "Declined", "Voided", "Refunded", "Skipped"])
250
250
  return false unless payment_status_validator.valid?(@payment_status)
@@ -254,7 +254,7 @@ module UltracartClient
254
254
  # Custom attribute writer method checking allowed values (enum).
255
255
  # @param [Object] payment_method Object to be assigned
256
256
  def payment_method=(payment_method)
257
- 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"])
257
+ 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"])
258
258
  unless validator.valid?(payment_method)
259
259
  fail ArgumentError, "invalid value for \"payment_method\", must be one of #{validator.allowable_values}."
260
260
  end
@@ -27,6 +27,8 @@ module UltracartClient
27
27
  # Error message if the query failed.
28
28
  attr_accessor :error_message
29
29
 
30
+ attr_accessor :executed_sql
31
+
30
32
  # An identifier that can be used to help match up the returned data set
31
33
  attr_accessor :for_object_id
32
34
 
@@ -88,6 +90,7 @@ module UltracartClient
88
90
  :'data_set_uuid' => :'data_set_uuid',
89
91
  :'destination_table_id' => :'destination_table_id',
90
92
  :'error_message' => :'error_message',
93
+ :'executed_sql' => :'executed_sql',
91
94
  :'for_object_id' => :'for_object_id',
92
95
  :'for_object_type' => :'for_object_type',
93
96
  :'initial_pages' => :'initial_pages',
@@ -114,6 +117,7 @@ module UltracartClient
114
117
  :'data_set_uuid' => :'String',
115
118
  :'destination_table_id' => :'String',
116
119
  :'error_message' => :'String',
120
+ :'executed_sql' => :'String',
117
121
  :'for_object_id' => :'String',
118
122
  :'for_object_type' => :'String',
119
123
  :'initial_pages' => :'Array<ReportDataSetPage>',
@@ -165,6 +169,10 @@ module UltracartClient
165
169
  self.error_message = attributes[:'error_message']
166
170
  end
167
171
 
172
+ if attributes.key?(:'executed_sql')
173
+ self.executed_sql = attributes[:'executed_sql']
174
+ end
175
+
168
176
  if attributes.key?(:'for_object_id')
169
177
  self.for_object_id = attributes[:'for_object_id']
170
178
  end
@@ -248,6 +256,7 @@ module UltracartClient
248
256
  data_set_uuid == o.data_set_uuid &&
249
257
  destination_table_id == o.destination_table_id &&
250
258
  error_message == o.error_message &&
259
+ executed_sql == o.executed_sql &&
251
260
  for_object_id == o.for_object_id &&
252
261
  for_object_type == o.for_object_type &&
253
262
  initial_pages == o.initial_pages &&
@@ -270,7 +279,7 @@ module UltracartClient
270
279
  # Calculates hash code according to all attributes.
271
280
  # @return [Integer] Hash code
272
281
  def hash
273
- [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
282
+ [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
274
283
  end
275
284
 
276
285
  # Builds the object from hash
@@ -11,5 +11,5 @@ OpenAPI Generator version: 6.0.1-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module UltracartClient
14
- VERSION = '4.0.154'
14
+ VERSION = '4.0.156'
15
15
  end
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: 4.0.154
4
+ version: 4.0.156
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-04 00:00:00.000000000 Z
11
+ date: 2023-05-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus