ultracart_api 3.10.169 → 3.10.171

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 78b1ce84e204f6e1b831dfa5d7f5eea1c77fed092f12d1db642303de1aec21c0
4
- data.tar.gz: ce0e7e09416139b1de7edefef85d2334ca285bdecc8defdeaf611093f762defd
3
+ metadata.gz: 7fe76934447a9d7de4d84b1984c7044c2c861f24d649eca049c32d3dfa76903a
4
+ data.tar.gz: 1604def158e75d84c8561fa17cee340eb06f6a09e60ded4dc3485c8125619088
5
5
  SHA512:
6
- metadata.gz: ff32a071c7001a590524c6015ae48cad5d0222f765a6ab98eeed53e4d491a55c1760f2dd01fc9dcb81521bbd40b9c035aa36a7bee2b3cf9093f94110f38e7564
7
- data.tar.gz: 65b708b7955c5fb01d9a5dd4710cb636ea5fb45027034d0e78749bac4dab7040d1a8a01e97cc011ecb67718337c2c86aacbe3e96b75490a8a54b49f9ab2be67d
6
+ metadata.gz: 6ffd2d925c0feb240206d1161618b412b01e149b9bd5d19b67bf09039883c8b40f592abe131ce118a948bbc96a1ac164048591993dcbb27abed4976a04b2cc21
7
+ data.tar.gz: 482cc26a308a3533fa0cd552a7f7c6eebe8e057f8b032928c3e0c01f7a3e47ca40804ed951bd132a70ba5b706d2274da0ea2aaf84a399387b936c3a90fa26026
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.169
10
+ - Package version: 3.10.171
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.169.gem
27
+ gem install ./ultracart_api-3.10.171.gem
28
28
  ```
29
- (for development, run `gem install --dev ./ultracart_api-3.10.169.gem` to install the development dependencies)
29
+ (for development, run `gem install --dev ./ultracart_api-3.10.171.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.169'
35
+ gem 'ultracart_api', '~> 3.10.171'
36
36
 
37
37
  ### Install from Git
38
38
 
@@ -1396,6 +1396,8 @@ Not every change is committed to every SDK.
1396
1396
 
1397
1397
  | Version | Date | Comments |
1398
1398
  | --: | :-: | --- |
1399
+ | 3.10.171 | 11/13/2023 | coupon - percent off items - add support for include/exclude by item tags |
1400
+ | 3.10.170 | 11/09/2023 | item - new auto order step type: pause until |
1399
1401
  | 3.10.169 | 11/06/2023 | customer api - added wishlist methods |
1400
1402
  | 3.10.168 | 11/01/2023 | customer - do_no_send_mail flag added |
1401
1403
  | 3.10.167 | 10/30/2023 | cart/order fields for health benefit card values in summary expansion objects |
@@ -4,7 +4,9 @@
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
6
  **discount_percent** | **Float** | The percentage of subtotal discount | [optional]
7
+ **excluded_item_tags** | **Array<String>** | A list of item tags which cannot be discounted. | [optional]
7
8
  **excluded_items** | **Array<String>** | A list of items which cannot be discounted. | [optional]
9
+ **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]
8
10
  **items** | **Array<String>** | An optional list of items which will receive a discount. If blank, discount applies to all items except excluded items. | [optional]
9
11
  **limit** | **Integer** | The (optional) maximum quantity of discounted items. | [optional]
10
12
 
@@ -10,6 +10,8 @@ Name | Type | Description | Notes
10
10
  **managed_by** | **String** | Managed by (defaults to UltraCart) | [optional]
11
11
  **pause_days** | **Integer** | Number of days to pause | [optional]
12
12
  **pause_until_date** | **String** | Wait for this step to happen until the specified date | [optional]
13
+ **pause_until_day_of_month** | **Integer** | Pause until a specific day of the month | [optional]
14
+ **pause_until_minimum_delay_days** | **Integer** | Pause at least this many days between the last order and the calculated next day of month | [optional]
13
15
  **preshipment_notice_days** | **Integer** | If set, a pre-shipment notice is sent to the customer this many days in advance | [optional]
14
16
  **recurring_merchant_item_id** | **String** | Item id to rebill | [optional]
15
17
  **recurring_merchant_item_oid** | **Integer** | Item object identifier to rebill | [optional]
@@ -17,9 +17,15 @@ module UltracartClient
17
17
  # The percentage of subtotal discount
18
18
  attr_accessor :discount_percent
19
19
 
20
+ # A list of item tags which cannot be discounted.
21
+ attr_accessor :excluded_item_tags
22
+
20
23
  # A list of items which cannot be discounted.
21
24
  attr_accessor :excluded_items
22
25
 
26
+ # An optional list of item tags which will receive a discount. If blank, discount applies to all items except excluded items.
27
+ attr_accessor :item_tags
28
+
23
29
  # An optional list of items which will receive a discount. If blank, discount applies to all items except excluded items.
24
30
  attr_accessor :items
25
31
 
@@ -30,7 +36,9 @@ module UltracartClient
30
36
  def self.attribute_map
31
37
  {
32
38
  :'discount_percent' => :'discount_percent',
39
+ :'excluded_item_tags' => :'excluded_item_tags',
33
40
  :'excluded_items' => :'excluded_items',
41
+ :'item_tags' => :'item_tags',
34
42
  :'items' => :'items',
35
43
  :'limit' => :'limit'
36
44
  }
@@ -40,7 +48,9 @@ module UltracartClient
40
48
  def self.swagger_types
41
49
  {
42
50
  :'discount_percent' => :'Float',
51
+ :'excluded_item_tags' => :'Array<String>',
43
52
  :'excluded_items' => :'Array<String>',
53
+ :'item_tags' => :'Array<String>',
44
54
  :'items' => :'Array<String>',
45
55
  :'limit' => :'Integer'
46
56
  }
@@ -58,12 +68,24 @@ module UltracartClient
58
68
  self.discount_percent = attributes[:'discount_percent']
59
69
  end
60
70
 
71
+ if attributes.has_key?(:'excluded_item_tags')
72
+ if (value = attributes[:'excluded_item_tags']).is_a?(Array)
73
+ self.excluded_item_tags = value
74
+ end
75
+ end
76
+
61
77
  if attributes.has_key?(:'excluded_items')
62
78
  if (value = attributes[:'excluded_items']).is_a?(Array)
63
79
  self.excluded_items = value
64
80
  end
65
81
  end
66
82
 
83
+ if attributes.has_key?(:'item_tags')
84
+ if (value = attributes[:'item_tags']).is_a?(Array)
85
+ self.item_tags = value
86
+ end
87
+ end
88
+
67
89
  if attributes.has_key?(:'items')
68
90
  if (value = attributes[:'items']).is_a?(Array)
69
91
  self.items = value
@@ -94,7 +116,9 @@ module UltracartClient
94
116
  return true if self.equal?(o)
95
117
  self.class == o.class &&
96
118
  discount_percent == o.discount_percent &&
119
+ excluded_item_tags == o.excluded_item_tags &&
97
120
  excluded_items == o.excluded_items &&
121
+ item_tags == o.item_tags &&
98
122
  items == o.items &&
99
123
  limit == o.limit
100
124
  end
@@ -108,7 +132,7 @@ module UltracartClient
108
132
  # Calculates hash code according to all attributes.
109
133
  # @return [Fixnum] Hash code
110
134
  def hash
111
- [discount_percent, excluded_items, items, limit].hash
135
+ [discount_percent, excluded_item_tags, excluded_items, item_tags, items, limit].hash
112
136
  end
113
137
 
114
138
  # Builds the object from hash
@@ -35,6 +35,12 @@ module UltracartClient
35
35
  # Wait for this step to happen until the specified date
36
36
  attr_accessor :pause_until_date
37
37
 
38
+ # Pause until a specific day of the month
39
+ attr_accessor :pause_until_day_of_month
40
+
41
+ # Pause at least this many days between the last order and the calculated next day of month
42
+ attr_accessor :pause_until_minimum_delay_days
43
+
38
44
  # If set, a pre-shipment notice is sent to the customer this many days in advance
39
45
  attr_accessor :preshipment_notice_days
40
46
 
@@ -91,6 +97,8 @@ module UltracartClient
91
97
  :'managed_by' => :'managed_by',
92
98
  :'pause_days' => :'pause_days',
93
99
  :'pause_until_date' => :'pause_until_date',
100
+ :'pause_until_day_of_month' => :'pause_until_day_of_month',
101
+ :'pause_until_minimum_delay_days' => :'pause_until_minimum_delay_days',
94
102
  :'preshipment_notice_days' => :'preshipment_notice_days',
95
103
  :'recurring_merchant_item_id' => :'recurring_merchant_item_id',
96
104
  :'recurring_merchant_item_oid' => :'recurring_merchant_item_oid',
@@ -112,6 +120,8 @@ module UltracartClient
112
120
  :'managed_by' => :'String',
113
121
  :'pause_days' => :'Integer',
114
122
  :'pause_until_date' => :'String',
123
+ :'pause_until_day_of_month' => :'Integer',
124
+ :'pause_until_minimum_delay_days' => :'Integer',
115
125
  :'preshipment_notice_days' => :'Integer',
116
126
  :'recurring_merchant_item_id' => :'String',
117
127
  :'recurring_merchant_item_oid' => :'Integer',
@@ -163,6 +173,14 @@ module UltracartClient
163
173
  self.pause_until_date = attributes[:'pause_until_date']
164
174
  end
165
175
 
176
+ if attributes.has_key?(:'pause_until_day_of_month')
177
+ self.pause_until_day_of_month = attributes[:'pause_until_day_of_month']
178
+ end
179
+
180
+ if attributes.has_key?(:'pause_until_minimum_delay_days')
181
+ self.pause_until_minimum_delay_days = attributes[:'pause_until_minimum_delay_days']
182
+ end
183
+
166
184
  if attributes.has_key?(:'preshipment_notice_days')
167
185
  self.preshipment_notice_days = attributes[:'preshipment_notice_days']
168
186
  end
@@ -211,7 +229,7 @@ module UltracartClient
211
229
  # @return true if the model is valid
212
230
  def valid?
213
231
  return false if !@recurring_merchant_item_id.nil? && @recurring_merchant_item_id.to_s.length > 20
214
- type_validator = EnumAttributeValidator.new('String', ['item', 'pause', 'loop', 'kit only'])
232
+ type_validator = EnumAttributeValidator.new('String', ['item', 'pause', 'loop', 'kit only', 'pause until'])
215
233
  return false unless type_validator.valid?(@type)
216
234
  true
217
235
  end
@@ -229,7 +247,7 @@ module UltracartClient
229
247
  # Custom attribute writer method checking allowed values (enum).
230
248
  # @param [Object] type Object to be assigned
231
249
  def type=(type)
232
- validator = EnumAttributeValidator.new('String', ['item', 'pause', 'loop', 'kit only'])
250
+ validator = EnumAttributeValidator.new('String', ['item', 'pause', 'loop', 'kit only', 'pause until'])
233
251
  unless validator.valid?(type)
234
252
  fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.'
235
253
  end
@@ -248,6 +266,8 @@ module UltracartClient
248
266
  managed_by == o.managed_by &&
249
267
  pause_days == o.pause_days &&
250
268
  pause_until_date == o.pause_until_date &&
269
+ pause_until_day_of_month == o.pause_until_day_of_month &&
270
+ pause_until_minimum_delay_days == o.pause_until_minimum_delay_days &&
251
271
  preshipment_notice_days == o.preshipment_notice_days &&
252
272
  recurring_merchant_item_id == o.recurring_merchant_item_id &&
253
273
  recurring_merchant_item_oid == o.recurring_merchant_item_oid &&
@@ -267,7 +287,7 @@ module UltracartClient
267
287
  # Calculates hash code according to all attributes.
268
288
  # @return [Fixnum] Hash code
269
289
  def hash
270
- [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
290
+ [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
271
291
  end
272
292
 
273
293
  # Builds the object from hash
@@ -11,5 +11,5 @@ Swagger Codegen version: 2.4.15-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module UltracartClient
14
- VERSION = '3.10.169'
14
+ VERSION = '3.10.171'
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: 3.10.169
4
+ version: 3.10.171
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