ultracart_api 4.0.235 → 4.0.236

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: 00e9179c2b04dc6ec9942b1c8cd447393c002569d4608e9bfaf9ccf2c3a90f2a
4
- data.tar.gz: 4ef276ff0b2ae0975dd408d65a58a36a9ff297e8a9918fbb68863530ee32f330
3
+ metadata.gz: 994927ea716b66108073954d4c8f92e1c920d6b715d4a099a76102b715d05777
4
+ data.tar.gz: babf5bf9c5ab1634f5137b1dcc541897e6558514ad263afd7bf9ffd4caf23b5d
5
5
  SHA512:
6
- metadata.gz: b813b0cdf171586ca718ff369efac6159b71eefc219a929bf1654eb457d9bbff04edd848d1b27a3ce5404a24cb8380c4807543ad3cd4f9e67bb8672476c56cb8
7
- data.tar.gz: f94e53de2f48dfc12222bd9a94fb4ddbcffd5fb2f89b8f9f2bdb3efa787003e370c08077871fed8c714e75c03c4828d9bf26cbea9d3418eb487714c70a54a41e
6
+ metadata.gz: 9d81eff48f7b9d4392e6c45c9697e4a18391b3c06c80e911660388f8c4c1ceacefb1611b778cdd267ae2011b958fb5fcf7d9947924b751de09b2d62e5356ae42
7
+ data.tar.gz: c022258bf9d67dfe1fbc430da1e1b85d0f402f9bfa296b52070c702aa35925f9f118f1582160988563b8971ff9c0e9c1bc1c4a2655d173d9525a776ea026bf75
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.235
10
+ - Package version: 4.0.236
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.235.gem
27
+ gem install ./ultracart_api-4.0.236.gem
28
28
  ```
29
29
 
30
- (for development, run `gem install --dev ./ultracart_api-4.0.235.gem` to install the development dependencies)
30
+ (for development, run `gem install --dev ./ultracart_api-4.0.236.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.235'
36
+ gem 'ultracart_api', '~> 4.0.236'
37
37
 
38
38
  ### Install from Git
39
39
 
@@ -1520,6 +1520,7 @@ Not every change is committed to every SDK.
1520
1520
 
1521
1521
  | Version | Date | Comments |
1522
1522
  | --: | :-: | --- |
1523
+ | 4.0.236 | 11/07/2024 | Coupon - PercentOffWithItemsQuantityPurchase - added support for tags |
1523
1524
  | 4.0.235 | 11/04/2024 | item - new constant for auto order schedule of every 5 months |
1524
1525
  | 4.0.234 | 10/24/2024 | storefront page attribute edit method |
1525
1526
  | 4.0.233 | 09/18/2024 | order payment constant for PayPal Fastlane |
@@ -5,9 +5,11 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **discount_percent** | **Float** | The percentage of subtotal discount | [optional] |
8
+ | **item_tags** | **Array<String>** | An optional list of item tags which will receive a discount if one of the required purchased items is purchased. | [optional] |
8
9
  | **items** | **Array<String>** | A list of items which will receive a discount if one of the required purchase items is purchased. | [optional] |
9
10
  | **limit** | **Integer** | The (optional) maximum quantity of discounted items. | [optional] |
10
11
  | **required_purchase_items** | **Array<String>** | Required items (at least one from the list) that must be purchased for coupon to be valid | [optional] |
12
+ | **required_purchase_items_tags** | **Array<String>** | Required item tags (at least one from the list) that must be purchase for coupon to be valid. | [optional] |
11
13
  | **required_purchase_quantity** | **Integer** | The quantity of items that must be purchased for the discount to be applied. | [optional] |
12
14
 
13
15
  ## Example
@@ -17,9 +19,11 @@ require 'ultracart_api'
17
19
 
18
20
  instance = UltracartClient::CouponPercentOffItemWithItemsQuantityPurchase.new(
19
21
  discount_percent: null,
22
+ item_tags: null,
20
23
  items: null,
21
24
  limit: null,
22
25
  required_purchase_items: null,
26
+ required_purchase_items_tags: null,
23
27
  required_purchase_quantity: null
24
28
  )
25
29
  ```
@@ -18,6 +18,9 @@ module UltracartClient
18
18
  # The percentage of subtotal discount
19
19
  attr_accessor :discount_percent
20
20
 
21
+ # An optional list of item tags which will receive a discount if one of the required purchased items is purchased.
22
+ attr_accessor :item_tags
23
+
21
24
  # A list of items which will receive a discount if one of the required purchase items is purchased.
22
25
  attr_accessor :items
23
26
 
@@ -27,6 +30,9 @@ module UltracartClient
27
30
  # Required items (at least one from the list) that must be purchased for coupon to be valid
28
31
  attr_accessor :required_purchase_items
29
32
 
33
+ # Required item tags (at least one from the list) that must be purchase for coupon to be valid.
34
+ attr_accessor :required_purchase_items_tags
35
+
30
36
  # The quantity of items that must be purchased for the discount to be applied.
31
37
  attr_accessor :required_purchase_quantity
32
38
 
@@ -34,9 +40,11 @@ module UltracartClient
34
40
  def self.attribute_map
35
41
  {
36
42
  :'discount_percent' => :'discount_percent',
43
+ :'item_tags' => :'item_tags',
37
44
  :'items' => :'items',
38
45
  :'limit' => :'limit',
39
46
  :'required_purchase_items' => :'required_purchase_items',
47
+ :'required_purchase_items_tags' => :'required_purchase_items_tags',
40
48
  :'required_purchase_quantity' => :'required_purchase_quantity'
41
49
  }
42
50
  end
@@ -50,9 +58,11 @@ module UltracartClient
50
58
  def self.openapi_types
51
59
  {
52
60
  :'discount_percent' => :'Float',
61
+ :'item_tags' => :'Array<String>',
53
62
  :'items' => :'Array<String>',
54
63
  :'limit' => :'Integer',
55
64
  :'required_purchase_items' => :'Array<String>',
65
+ :'required_purchase_items_tags' => :'Array<String>',
56
66
  :'required_purchase_quantity' => :'Integer'
57
67
  }
58
68
  end
@@ -82,6 +92,12 @@ module UltracartClient
82
92
  self.discount_percent = attributes[:'discount_percent']
83
93
  end
84
94
 
95
+ if attributes.key?(:'item_tags')
96
+ if (value = attributes[:'item_tags']).is_a?(Array)
97
+ self.item_tags = value
98
+ end
99
+ end
100
+
85
101
  if attributes.key?(:'items')
86
102
  if (value = attributes[:'items']).is_a?(Array)
87
103
  self.items = value
@@ -98,6 +114,12 @@ module UltracartClient
98
114
  end
99
115
  end
100
116
 
117
+ if attributes.key?(:'required_purchase_items_tags')
118
+ if (value = attributes[:'required_purchase_items_tags']).is_a?(Array)
119
+ self.required_purchase_items_tags = value
120
+ end
121
+ end
122
+
101
123
  if attributes.key?(:'required_purchase_quantity')
102
124
  self.required_purchase_quantity = attributes[:'required_purchase_quantity']
103
125
  end
@@ -122,9 +144,11 @@ module UltracartClient
122
144
  return true if self.equal?(o)
123
145
  self.class == o.class &&
124
146
  discount_percent == o.discount_percent &&
147
+ item_tags == o.item_tags &&
125
148
  items == o.items &&
126
149
  limit == o.limit &&
127
150
  required_purchase_items == o.required_purchase_items &&
151
+ required_purchase_items_tags == o.required_purchase_items_tags &&
128
152
  required_purchase_quantity == o.required_purchase_quantity
129
153
  end
130
154
 
@@ -137,7 +161,7 @@ module UltracartClient
137
161
  # Calculates hash code according to all attributes.
138
162
  # @return [Integer] Hash code
139
163
  def hash
140
- [discount_percent, items, limit, required_purchase_items, required_purchase_quantity].hash
164
+ [discount_percent, item_tags, items, limit, required_purchase_items, required_purchase_items_tags, required_purchase_quantity].hash
141
165
  end
142
166
 
143
167
  # 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.235'
14
+ VERSION = '4.0.236'
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.235
4
+ version: 4.0.236
5
5
  platform: ruby
6
6
  authors:
7
7
  - UltraCart
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-11-04 00:00:00.000000000 Z
11
+ date: 2024-11-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus