ultracart_api 4.0.186 → 4.0.188

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: ed36da23b208a7311ac8cd543e60742211526401a60a1c1462a612ceed2652ac
4
- data.tar.gz: a2b700910c6c7ab9eab94e5e1c7b8d3290c70cd49fcbf534e424ba1bc9973258
3
+ metadata.gz: 152503737a27d2045a28bae85d7056caa56db8b3820f2209925271bb8a651bd4
4
+ data.tar.gz: fd229db355c14969565ab6aeceb1d8c3a7c7a88fe41a04000f55fd37c9946100
5
5
  SHA512:
6
- metadata.gz: 3eab3e9f31c01ae8a75a48f22fa09323b14d0e0dc03711ad30f46c511a53ad9ca43672d50e70aed28e67de40ac6b840ef38987b6bbe86e3f1b4ee354d48308b0
7
- data.tar.gz: 3dde8312e935c4292fd6be5ad10d535fe73e70ef581617714449df2da9708af255b0cc35333743fdfd8829650e40326690a454ab8cd4f10bff191cf88fd77cd0
6
+ metadata.gz: aba2358f10dd848d9234d5a1de46fbea55f70741e65b39d9c442d42591e11ab72be4176c7a30a12af1001cb0a26c3eb80807fe623959f1b2e7422196cef423fb
7
+ data.tar.gz: 7f2e9f3a73b48336eea4b6448c2e2ef0053af1a7b9f73078d00d91051e47733ee1f5b9ac78f517b40ff5791c82f7a404c6b838608e56e80fc3c13aa974b4f187
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.186
10
+ - Package version: 4.0.188
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.186.gem
27
+ gem install ./ultracart_api-4.0.188.gem
28
28
  ```
29
29
 
30
- (for development, run `gem install --dev ./ultracart_api-4.0.186.gem` to install the development dependencies)
30
+ (for development, run `gem install --dev ./ultracart_api-4.0.188.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.186'
36
+ gem 'ultracart_api', '~> 4.0.188'
37
37
 
38
38
  ### Install from Git
39
39
 
@@ -1404,6 +1404,8 @@ Not every change is committed to every SDK.
1404
1404
 
1405
1405
  | Version | Date | Comments |
1406
1406
  | --: | :-: | --- |
1407
+ | 4.0.188 | 11/13/2023 | coupon - percent off items - add support for include/exclude by item tags |
1408
+ | 4.0.187 | 11/09/2023 | item - new auto order step type: pause until |
1407
1409
  | 4.0.186 | 11/06/2023 | customer api - added wishlist methods |
1408
1410
  | 4.0.185 | 11/01/2023 | customer - do_no_send_mail flag added |
1409
1411
  | 4.0.184 | 10/30/2023 | cart/order fields for health benefit card values in summary expansion objects |
@@ -5,7 +5,9 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **discount_percent** | **Float** | The percentage of subtotal discount | [optional] |
8
+ | **excluded_item_tags** | **Array<String>** | A list of item tags which cannot be discounted. | [optional] |
8
9
  | **excluded_items** | **Array<String>** | A list of items which cannot be discounted. | [optional] |
10
+ | **item_tags** | **Array<String>** | An optional list of item tags which will receive a discount. If blank, discount applies to all items except excluded items. | [optional] |
9
11
  | **items** | **Array<String>** | An optional list of items which will receive a discount. If blank, discount applies to all items except excluded items. | [optional] |
10
12
  | **limit** | **Integer** | The (optional) maximum quantity of discounted items. | [optional] |
11
13
 
@@ -16,7 +18,9 @@ require 'ultracart_api'
16
18
 
17
19
  instance = UltracartClient::CouponPercentOffItems.new(
18
20
  discount_percent: null,
21
+ excluded_item_tags: null,
19
22
  excluded_items: null,
23
+ item_tags: null,
20
24
  items: null,
21
25
  limit: null
22
26
  )
@@ -11,6 +11,8 @@
11
11
  | **managed_by** | **String** | Managed by (defaults to UltraCart) | [optional] |
12
12
  | **pause_days** | **Integer** | Number of days to pause | [optional] |
13
13
  | **pause_until_date** | **String** | Wait for this step to happen until the specified date | [optional] |
14
+ | **pause_until_day_of_month** | **Integer** | Pause until a specific day of the month | [optional] |
15
+ | **pause_until_minimum_delay_days** | **Integer** | Pause at least this many days between the last order and the calculated next day of month | [optional] |
14
16
  | **preshipment_notice_days** | **Integer** | If set, a pre-shipment notice is sent to the customer this many days in advance | [optional] |
15
17
  | **recurring_merchant_item_id** | **String** | Item id to rebill | [optional] |
16
18
  | **recurring_merchant_item_oid** | **Integer** | Item object identifier to rebill | [optional] |
@@ -33,6 +35,8 @@ instance = UltracartClient::ItemAutoOrderStep.new(
33
35
  managed_by: null,
34
36
  pause_days: null,
35
37
  pause_until_date: null,
38
+ pause_until_day_of_month: null,
39
+ pause_until_minimum_delay_days: null,
36
40
  preshipment_notice_days: null,
37
41
  recurring_merchant_item_id: null,
38
42
  recurring_merchant_item_oid: null,
@@ -18,9 +18,15 @@ module UltracartClient
18
18
  # The percentage of subtotal discount
19
19
  attr_accessor :discount_percent
20
20
 
21
+ # A list of item tags which cannot be discounted.
22
+ attr_accessor :excluded_item_tags
23
+
21
24
  # A list of items which cannot be discounted.
22
25
  attr_accessor :excluded_items
23
26
 
27
+ # An optional list of item tags which will receive a discount. If blank, discount applies to all items except excluded items.
28
+ attr_accessor :item_tags
29
+
24
30
  # An optional list of items which will receive a discount. If blank, discount applies to all items except excluded items.
25
31
  attr_accessor :items
26
32
 
@@ -31,7 +37,9 @@ module UltracartClient
31
37
  def self.attribute_map
32
38
  {
33
39
  :'discount_percent' => :'discount_percent',
40
+ :'excluded_item_tags' => :'excluded_item_tags',
34
41
  :'excluded_items' => :'excluded_items',
42
+ :'item_tags' => :'item_tags',
35
43
  :'items' => :'items',
36
44
  :'limit' => :'limit'
37
45
  }
@@ -46,7 +54,9 @@ module UltracartClient
46
54
  def self.openapi_types
47
55
  {
48
56
  :'discount_percent' => :'Float',
57
+ :'excluded_item_tags' => :'Array<String>',
49
58
  :'excluded_items' => :'Array<String>',
59
+ :'item_tags' => :'Array<String>',
50
60
  :'items' => :'Array<String>',
51
61
  :'limit' => :'Integer'
52
62
  }
@@ -77,12 +87,24 @@ module UltracartClient
77
87
  self.discount_percent = attributes[:'discount_percent']
78
88
  end
79
89
 
90
+ if attributes.key?(:'excluded_item_tags')
91
+ if (value = attributes[:'excluded_item_tags']).is_a?(Array)
92
+ self.excluded_item_tags = value
93
+ end
94
+ end
95
+
80
96
  if attributes.key?(:'excluded_items')
81
97
  if (value = attributes[:'excluded_items']).is_a?(Array)
82
98
  self.excluded_items = value
83
99
  end
84
100
  end
85
101
 
102
+ if attributes.key?(:'item_tags')
103
+ if (value = attributes[:'item_tags']).is_a?(Array)
104
+ self.item_tags = value
105
+ end
106
+ end
107
+
86
108
  if attributes.key?(:'items')
87
109
  if (value = attributes[:'items']).is_a?(Array)
88
110
  self.items = value
@@ -113,7 +135,9 @@ module UltracartClient
113
135
  return true if self.equal?(o)
114
136
  self.class == o.class &&
115
137
  discount_percent == o.discount_percent &&
138
+ excluded_item_tags == o.excluded_item_tags &&
116
139
  excluded_items == o.excluded_items &&
140
+ item_tags == o.item_tags &&
117
141
  items == o.items &&
118
142
  limit == o.limit
119
143
  end
@@ -127,7 +151,7 @@ module UltracartClient
127
151
  # Calculates hash code according to all attributes.
128
152
  # @return [Integer] Hash code
129
153
  def hash
130
- [discount_percent, excluded_items, items, limit].hash
154
+ [discount_percent, excluded_item_tags, excluded_items, item_tags, items, limit].hash
131
155
  end
132
156
 
133
157
  # Builds the object from hash
@@ -36,6 +36,12 @@ module UltracartClient
36
36
  # Wait for this step to happen until the specified date
37
37
  attr_accessor :pause_until_date
38
38
 
39
+ # Pause until a specific day of the month
40
+ attr_accessor :pause_until_day_of_month
41
+
42
+ # Pause at least this many days between the last order and the calculated next day of month
43
+ attr_accessor :pause_until_minimum_delay_days
44
+
39
45
  # If set, a pre-shipment notice is sent to the customer this many days in advance
40
46
  attr_accessor :preshipment_notice_days
41
47
 
@@ -92,6 +98,8 @@ module UltracartClient
92
98
  :'managed_by' => :'managed_by',
93
99
  :'pause_days' => :'pause_days',
94
100
  :'pause_until_date' => :'pause_until_date',
101
+ :'pause_until_day_of_month' => :'pause_until_day_of_month',
102
+ :'pause_until_minimum_delay_days' => :'pause_until_minimum_delay_days',
95
103
  :'preshipment_notice_days' => :'preshipment_notice_days',
96
104
  :'recurring_merchant_item_id' => :'recurring_merchant_item_id',
97
105
  :'recurring_merchant_item_oid' => :'recurring_merchant_item_oid',
@@ -118,6 +126,8 @@ module UltracartClient
118
126
  :'managed_by' => :'String',
119
127
  :'pause_days' => :'Integer',
120
128
  :'pause_until_date' => :'String',
129
+ :'pause_until_day_of_month' => :'Integer',
130
+ :'pause_until_minimum_delay_days' => :'Integer',
121
131
  :'preshipment_notice_days' => :'Integer',
122
132
  :'recurring_merchant_item_id' => :'String',
123
133
  :'recurring_merchant_item_oid' => :'Integer',
@@ -182,6 +192,14 @@ module UltracartClient
182
192
  self.pause_until_date = attributes[:'pause_until_date']
183
193
  end
184
194
 
195
+ if attributes.key?(:'pause_until_day_of_month')
196
+ self.pause_until_day_of_month = attributes[:'pause_until_day_of_month']
197
+ end
198
+
199
+ if attributes.key?(:'pause_until_minimum_delay_days')
200
+ self.pause_until_minimum_delay_days = attributes[:'pause_until_minimum_delay_days']
201
+ end
202
+
185
203
  if attributes.key?(:'preshipment_notice_days')
186
204
  self.preshipment_notice_days = attributes[:'preshipment_notice_days']
187
205
  end
@@ -230,7 +248,7 @@ module UltracartClient
230
248
  # @return true if the model is valid
231
249
  def valid?
232
250
  return false if !@recurring_merchant_item_id.nil? && @recurring_merchant_item_id.to_s.length > 20
233
- type_validator = EnumAttributeValidator.new('String', ["item", "pause", "loop", "kit only"])
251
+ type_validator = EnumAttributeValidator.new('String', ["item", "pause", "loop", "kit only", "pause until"])
234
252
  return false unless type_validator.valid?(@type)
235
253
  true
236
254
  end
@@ -248,7 +266,7 @@ module UltracartClient
248
266
  # Custom attribute writer method checking allowed values (enum).
249
267
  # @param [Object] type Object to be assigned
250
268
  def type=(type)
251
- validator = EnumAttributeValidator.new('String', ["item", "pause", "loop", "kit only"])
269
+ validator = EnumAttributeValidator.new('String', ["item", "pause", "loop", "kit only", "pause until"])
252
270
  unless validator.valid?(type)
253
271
  fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
254
272
  end
@@ -267,6 +285,8 @@ module UltracartClient
267
285
  managed_by == o.managed_by &&
268
286
  pause_days == o.pause_days &&
269
287
  pause_until_date == o.pause_until_date &&
288
+ pause_until_day_of_month == o.pause_until_day_of_month &&
289
+ pause_until_minimum_delay_days == o.pause_until_minimum_delay_days &&
270
290
  preshipment_notice_days == o.preshipment_notice_days &&
271
291
  recurring_merchant_item_id == o.recurring_merchant_item_id &&
272
292
  recurring_merchant_item_oid == o.recurring_merchant_item_oid &&
@@ -286,7 +306,7 @@ module UltracartClient
286
306
  # Calculates hash code according to all attributes.
287
307
  # @return [Integer] Hash code
288
308
  def hash
289
- [arbitrary_schedule_days, arbitrary_unit_cost, arbitrary_unit_cost_schedules, grandfather_pricing, managed_by, pause_days, pause_until_date, preshipment_notice_days, recurring_merchant_item_id, recurring_merchant_item_oid, repeat_count, schedule, subscribe_email_list_name, subscribe_email_list_oid, type].hash
309
+ [arbitrary_schedule_days, arbitrary_unit_cost, arbitrary_unit_cost_schedules, grandfather_pricing, managed_by, pause_days, pause_until_date, pause_until_day_of_month, pause_until_minimum_delay_days, preshipment_notice_days, recurring_merchant_item_id, recurring_merchant_item_oid, repeat_count, schedule, subscribe_email_list_name, subscribe_email_list_oid, type].hash
290
310
  end
291
311
 
292
312
  # 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.186'
14
+ VERSION = '4.0.188'
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.186
4
+ version: 4.0.188
5
5
  platform: ruby
6
6
  authors:
7
7
  - UltraCart
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-06 00:00:00.000000000 Z
11
+ date: 2023-11-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus