ultracart_api 4.0.187 → 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: 63195f713a35f19a29255077b2823f382bb2f2dcf722366bf024810d840b6060
4
- data.tar.gz: 601a743d7cbcc0af6e58992aadda161dee4844c40d55341490fa38cba3c80c3c
3
+ metadata.gz: 152503737a27d2045a28bae85d7056caa56db8b3820f2209925271bb8a651bd4
4
+ data.tar.gz: fd229db355c14969565ab6aeceb1d8c3a7c7a88fe41a04000f55fd37c9946100
5
5
  SHA512:
6
- metadata.gz: 13ca6d549e8d384d98f252283a8f7fb63873d3c63e5da1d036dbf340344e42581fcc968390c1abe1373b6746af87b04d452d5ff24190290e6f81f400075f34a0
7
- data.tar.gz: 060edd8e5f2875ed37902234215737335fc587ce134bdc2ea8834644522828f6417e928dfb3b6c414d19efbbd65c65c1d2fea62c0cce865896713d8ed928c551
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.187
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.187.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.187.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.187'
36
+ gem 'ultracart_api', '~> 4.0.188'
37
37
 
38
38
  ### Install from Git
39
39
 
@@ -1404,6 +1404,7 @@ 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 |
1407
1408
  | 4.0.187 | 11/09/2023 | item - new auto order step type: pause until |
1408
1409
  | 4.0.186 | 11/06/2023 | customer api - added wishlist methods |
1409
1410
  | 4.0.185 | 11/01/2023 | customer - do_no_send_mail flag added |
@@ -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
  )
@@ -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
@@ -11,5 +11,5 @@ OpenAPI Generator version: 6.0.1-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module UltracartClient
14
- VERSION = '4.0.187'
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.187
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-09 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