ultracart_api 3.10.218 → 3.10.219
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 147c5eef63f516abdc8f159b228281d3e5686aa656c6e76e77c44a258c1c16dd
|
4
|
+
data.tar.gz: 5c19e04fad5cc30bc6cc756a574dc96e2575ccf50f3d890f82e9ff9f453ddb2c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9de4768280c24d32957afcbbbdfe330a615e9167d0ea4471f252136596e11ec7f3a0c236a54de39573c1ebf4a86a5d6940b8b7634451443ad1ca079f0106a8f6
|
7
|
+
data.tar.gz: a3f0df985c01124d9a0e73f30c49eb56580419eb0a2e1270934b33f0fad4963fc65cdb546f8ee3fe8122795d7297eb2590111c92e0551eeaee01486a7f94f318
|
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.
|
10
|
+
- Package version: 3.10.219
|
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.
|
27
|
+
gem install ./ultracart_api-3.10.219.gem
|
28
28
|
```
|
29
|
-
(for development, run `gem install --dev ./ultracart_api-3.10.
|
29
|
+
(for development, run `gem install --dev ./ultracart_api-3.10.219.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.
|
35
|
+
gem 'ultracart_api', '~> 3.10.219'
|
36
36
|
|
37
37
|
### Install from Git
|
38
38
|
|
@@ -1512,6 +1512,7 @@ Not every change is committed to every SDK.
|
|
1512
1512
|
|
1513
1513
|
| Version | Date | Comments |
|
1514
1514
|
| --: | :-: | --- |
|
1515
|
+
| 3.10.219 | 11/07/2024 | Coupon - PercentOffWithItemsQuantityPurchase - added support for tags |
|
1515
1516
|
| 3.10.218 | 11/04/2024 | item - new constant for auto order schedule of every 5 months |
|
1516
1517
|
| 3.10.217 | 10/24/2024 | storefront page attribute edit method |
|
1517
1518
|
| 3.10.216 | 09/18/2024 | order payment constant for PayPal Fastlane |
|
@@ -4,9 +4,11 @@
|
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
6
|
**discount_percent** | **Float** | The percentage of subtotal discount | [optional]
|
7
|
+
**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]
|
7
8
|
**items** | **Array<String>** | A list of items which will receive a discount if one of the required purchase items is purchased. | [optional]
|
8
9
|
**limit** | **Integer** | The (optional) maximum quantity of discounted items. | [optional]
|
9
10
|
**required_purchase_items** | **Array<String>** | Required items (at least one from the list) that must be purchased for coupon to be valid | [optional]
|
11
|
+
**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]
|
10
12
|
**required_purchase_quantity** | **Integer** | The quantity of items that must be purchased for the discount to be applied. | [optional]
|
11
13
|
|
12
14
|
|
@@ -17,6 +17,9 @@ module UltracartClient
|
|
17
17
|
# The percentage of subtotal discount
|
18
18
|
attr_accessor :discount_percent
|
19
19
|
|
20
|
+
# An optional list of item tags which will receive a discount if one of the required purchased items is purchased.
|
21
|
+
attr_accessor :item_tags
|
22
|
+
|
20
23
|
# A list of items which will receive a discount if one of the required purchase items is purchased.
|
21
24
|
attr_accessor :items
|
22
25
|
|
@@ -26,6 +29,9 @@ module UltracartClient
|
|
26
29
|
# Required items (at least one from the list) that must be purchased for coupon to be valid
|
27
30
|
attr_accessor :required_purchase_items
|
28
31
|
|
32
|
+
# Required item tags (at least one from the list) that must be purchase for coupon to be valid.
|
33
|
+
attr_accessor :required_purchase_items_tags
|
34
|
+
|
29
35
|
# The quantity of items that must be purchased for the discount to be applied.
|
30
36
|
attr_accessor :required_purchase_quantity
|
31
37
|
|
@@ -33,9 +39,11 @@ module UltracartClient
|
|
33
39
|
def self.attribute_map
|
34
40
|
{
|
35
41
|
:'discount_percent' => :'discount_percent',
|
42
|
+
:'item_tags' => :'item_tags',
|
36
43
|
:'items' => :'items',
|
37
44
|
:'limit' => :'limit',
|
38
45
|
:'required_purchase_items' => :'required_purchase_items',
|
46
|
+
:'required_purchase_items_tags' => :'required_purchase_items_tags',
|
39
47
|
:'required_purchase_quantity' => :'required_purchase_quantity'
|
40
48
|
}
|
41
49
|
end
|
@@ -44,9 +52,11 @@ module UltracartClient
|
|
44
52
|
def self.swagger_types
|
45
53
|
{
|
46
54
|
:'discount_percent' => :'Float',
|
55
|
+
:'item_tags' => :'Array<String>',
|
47
56
|
:'items' => :'Array<String>',
|
48
57
|
:'limit' => :'Integer',
|
49
58
|
:'required_purchase_items' => :'Array<String>',
|
59
|
+
:'required_purchase_items_tags' => :'Array<String>',
|
50
60
|
:'required_purchase_quantity' => :'Integer'
|
51
61
|
}
|
52
62
|
end
|
@@ -63,6 +73,12 @@ module UltracartClient
|
|
63
73
|
self.discount_percent = attributes[:'discount_percent']
|
64
74
|
end
|
65
75
|
|
76
|
+
if attributes.has_key?(:'item_tags')
|
77
|
+
if (value = attributes[:'item_tags']).is_a?(Array)
|
78
|
+
self.item_tags = value
|
79
|
+
end
|
80
|
+
end
|
81
|
+
|
66
82
|
if attributes.has_key?(:'items')
|
67
83
|
if (value = attributes[:'items']).is_a?(Array)
|
68
84
|
self.items = value
|
@@ -79,6 +95,12 @@ module UltracartClient
|
|
79
95
|
end
|
80
96
|
end
|
81
97
|
|
98
|
+
if attributes.has_key?(:'required_purchase_items_tags')
|
99
|
+
if (value = attributes[:'required_purchase_items_tags']).is_a?(Array)
|
100
|
+
self.required_purchase_items_tags = value
|
101
|
+
end
|
102
|
+
end
|
103
|
+
|
82
104
|
if attributes.has_key?(:'required_purchase_quantity')
|
83
105
|
self.required_purchase_quantity = attributes[:'required_purchase_quantity']
|
84
106
|
end
|
@@ -103,9 +125,11 @@ module UltracartClient
|
|
103
125
|
return true if self.equal?(o)
|
104
126
|
self.class == o.class &&
|
105
127
|
discount_percent == o.discount_percent &&
|
128
|
+
item_tags == o.item_tags &&
|
106
129
|
items == o.items &&
|
107
130
|
limit == o.limit &&
|
108
131
|
required_purchase_items == o.required_purchase_items &&
|
132
|
+
required_purchase_items_tags == o.required_purchase_items_tags &&
|
109
133
|
required_purchase_quantity == o.required_purchase_quantity
|
110
134
|
end
|
111
135
|
|
@@ -118,7 +142,7 @@ module UltracartClient
|
|
118
142
|
# Calculates hash code according to all attributes.
|
119
143
|
# @return [Fixnum] Hash code
|
120
144
|
def hash
|
121
|
-
[discount_percent, items, limit, required_purchase_items, required_purchase_quantity].hash
|
145
|
+
[discount_percent, item_tags, items, limit, required_purchase_items, required_purchase_items_tags, required_purchase_quantity].hash
|
122
146
|
end
|
123
147
|
|
124
148
|
# Builds the object from hash
|
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.
|
4
|
+
version: 3.10.219
|
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-
|
11
|
+
date: 2024-11-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|