ultracart_api 3.10.217 → 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: ced3df4a71c53a4fc656ca961af99ba9e518f263f107504d785dc83e6b224bd0
4
- data.tar.gz: 21b7cc4b6deb7d69ddf001ba868ce53ed6207db1ef717280e3d22cf7e1851f73
3
+ metadata.gz: 147c5eef63f516abdc8f159b228281d3e5686aa656c6e76e77c44a258c1c16dd
4
+ data.tar.gz: 5c19e04fad5cc30bc6cc756a574dc96e2575ccf50f3d890f82e9ff9f453ddb2c
5
5
  SHA512:
6
- metadata.gz: 93a6f72a64807486790a3c2ebd160ed285d5c3b9e0b61de1e2302f7d5773e7999e04c1061b5008b1ade538e7d875b6b44856346c6f183b7cebaa59fdfea6f21b
7
- data.tar.gz: 6e8a8f94d13d7ef36c419833aa0e7022e9f103a31b33d4b117402ce59d1c3e175b9349351569d1b858cc6086645df37b9c6210e9ab925320ca4719bba73b58f1
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.217
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.217.gem
27
+ gem install ./ultracart_api-3.10.219.gem
28
28
  ```
29
- (for development, run `gem install --dev ./ultracart_api-3.10.217.gem` to install the development dependencies)
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.217'
35
+ gem 'ultracart_api', '~> 3.10.219'
36
36
 
37
37
  ### Install from Git
38
38
 
@@ -1512,6 +1512,8 @@ 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 |
1516
+ | 3.10.218 | 11/04/2024 | item - new constant for auto order schedule of every 5 months |
1515
1517
  | 3.10.217 | 10/24/2024 | storefront page attribute edit method |
1516
1518
  | 3.10.216 | 09/18/2024 | order payment constant for PayPal Fastlane |
1517
1519
  | 3.10.215 | 08/29/2024 | add hold_for_transmission to item shipping object |
@@ -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
 
data/docs/WebhookLog.md CHANGED
@@ -14,5 +14,6 @@ Name | Type | Description | Notes
14
14
  **status_code** | **Integer** | HTTP status code received from the server | [optional]
15
15
  **success** | **BOOLEAN** | True if the delivery was successful | [optional]
16
16
  **uri** | **String** | URI of the webhook delivered to | [optional]
17
+ **webhook_oid** | **Integer** | webhook oid | [optional]
17
18
 
18
19
 
@@ -322,7 +322,7 @@ module UltracartClient
322
322
  # Check to see if the all the properties in the model are valid
323
323
  # @return true if the model is valid
324
324
  def valid?
325
- frequency_validator = EnumAttributeValidator.new('String', ['Weekly', 'Biweekly', 'Every...', 'Every 10 Days', 'Every 24 Days', 'Every 28 Days', 'Monthly', 'Every 45 Days', 'Every 2 Months', 'Every 3 Months', 'Every 4 Months', 'Every 6 Months', 'Yearly', 'Every 4 Weeks', 'Every 6 Weeks', 'Every 8 Weeks'])
325
+ frequency_validator = EnumAttributeValidator.new('String', ['Weekly', 'Biweekly', 'Every...', 'Every 10 Days', 'Every 24 Days', 'Every 28 Days', 'Monthly', 'Every 45 Days', 'Every 2 Months', 'Every 3 Months', 'Every 4 Months', 'Every 5 Months', 'Every 6 Months', 'Yearly', 'Every 4 Weeks', 'Every 6 Weeks', 'Every 8 Weeks'])
326
326
  return false unless frequency_validator.valid?(@frequency)
327
327
  true
328
328
  end
@@ -330,7 +330,7 @@ module UltracartClient
330
330
  # Custom attribute writer method checking allowed values (enum).
331
331
  # @param [Object] frequency Object to be assigned
332
332
  def frequency=(frequency)
333
- validator = EnumAttributeValidator.new('String', ['Weekly', 'Biweekly', 'Every...', 'Every 10 Days', 'Every 24 Days', 'Every 28 Days', 'Monthly', 'Every 45 Days', 'Every 2 Months', 'Every 3 Months', 'Every 4 Months', 'Every 6 Months', 'Yearly', 'Every 4 Weeks', 'Every 6 Weeks', 'Every 8 Weeks'])
333
+ validator = EnumAttributeValidator.new('String', ['Weekly', 'Biweekly', 'Every...', 'Every 10 Days', 'Every 24 Days', 'Every 28 Days', 'Monthly', 'Every 45 Days', 'Every 2 Months', 'Every 3 Months', 'Every 4 Months', 'Every 5 Months', 'Every 6 Months', 'Yearly', 'Every 4 Weeks', 'Every 6 Weeks', 'Every 8 Weeks'])
334
334
  unless validator.valid?(frequency)
335
335
  fail ArgumentError, 'invalid value for "frequency", must be one of #{validator.allowable_values}.'
336
336
  end
@@ -94,7 +94,7 @@ module UltracartClient
94
94
  # Check to see if the all the properties in the model are valid
95
95
  # @return true if the model is valid
96
96
  def valid?
97
- frequency_validator = EnumAttributeValidator.new('String', ['Weekly', 'Biweekly', 'Every...', 'Every 10 Days', 'Every 24 Days', 'Every 28 Days', 'Monthly', 'Every 45 Days', 'Every 2 Months', 'Every 3 Months', 'Every 4 Months', 'Every 6 Months', 'Yearly', 'Every 4 Weeks', 'Every 6 Weeks', 'Every 8 Weeks'])
97
+ frequency_validator = EnumAttributeValidator.new('String', ['Weekly', 'Biweekly', 'Every...', 'Every 10 Days', 'Every 24 Days', 'Every 28 Days', 'Monthly', 'Every 45 Days', 'Every 2 Months', 'Every 3 Months', 'Every 4 Months', 'Every 5 Months', 'Every 6 Months', 'Yearly', 'Every 4 Weeks', 'Every 6 Weeks', 'Every 8 Weeks'])
98
98
  return false unless frequency_validator.valid?(@frequency)
99
99
  true
100
100
  end
@@ -102,7 +102,7 @@ module UltracartClient
102
102
  # Custom attribute writer method checking allowed values (enum).
103
103
  # @param [Object] frequency Object to be assigned
104
104
  def frequency=(frequency)
105
- validator = EnumAttributeValidator.new('String', ['Weekly', 'Biweekly', 'Every...', 'Every 10 Days', 'Every 24 Days', 'Every 28 Days', 'Monthly', 'Every 45 Days', 'Every 2 Months', 'Every 3 Months', 'Every 4 Months', 'Every 6 Months', 'Yearly', 'Every 4 Weeks', 'Every 6 Weeks', 'Every 8 Weeks'])
105
+ validator = EnumAttributeValidator.new('String', ['Weekly', 'Biweekly', 'Every...', 'Every 10 Days', 'Every 24 Days', 'Every 28 Days', 'Monthly', 'Every 45 Days', 'Every 2 Months', 'Every 3 Months', 'Every 4 Months', 'Every 5 Months', 'Every 6 Months', 'Yearly', 'Every 4 Weeks', 'Every 6 Weeks', 'Every 8 Weeks'])
106
106
  unless validator.valid?(frequency)
107
107
  fail ArgumentError, 'invalid value for "frequency", must be one of #{validator.allowable_values}.'
108
108
  end
@@ -136,7 +136,7 @@ module UltracartClient
136
136
  # Check to see if the all the properties in the model are valid
137
137
  # @return true if the model is valid
138
138
  def valid?
139
- auto_order_schedule_validator = EnumAttributeValidator.new('String', ['Weekly', 'Every 10 Days', 'Biweekly', 'Every 24 Days', 'Every 28 Days', 'Monthly', 'Every 45 Days', 'Every 2 Months', 'Every 3 Months', 'Every 4 Months', 'Every 6 Months', 'Yearly', 'Every 4 Weeks', 'Every 6 Weeks', 'Every 8 Weeks'])
139
+ auto_order_schedule_validator = EnumAttributeValidator.new('String', ['Weekly', 'Every 10 Days', 'Biweekly', 'Every 24 Days', 'Every 28 Days', 'Monthly', 'Every 45 Days', 'Every 2 Months', 'Every 3 Months', 'Every 4 Months', 'Every 5 Months', 'Every 6 Months', 'Yearly', 'Every 4 Weeks', 'Every 6 Weeks', 'Every 8 Weeks'])
140
140
  return false unless auto_order_schedule_validator.valid?(@auto_order_schedule)
141
141
  return false if !@merchant_item_id.nil? && @merchant_item_id.to_s.length > 20
142
142
  true
@@ -145,7 +145,7 @@ module UltracartClient
145
145
  # Custom attribute writer method checking allowed values (enum).
146
146
  # @param [Object] auto_order_schedule Object to be assigned
147
147
  def auto_order_schedule=(auto_order_schedule)
148
- validator = EnumAttributeValidator.new('String', ['Weekly', 'Every 10 Days', 'Biweekly', 'Every 24 Days', 'Every 28 Days', 'Monthly', 'Every 45 Days', 'Every 2 Months', 'Every 3 Months', 'Every 4 Months', 'Every 6 Months', 'Yearly', 'Every 4 Weeks', 'Every 6 Weeks', 'Every 8 Weeks'])
148
+ validator = EnumAttributeValidator.new('String', ['Weekly', 'Every 10 Days', 'Biweekly', 'Every 24 Days', 'Every 28 Days', 'Monthly', 'Every 45 Days', 'Every 2 Months', 'Every 3 Months', 'Every 4 Months', 'Every 5 Months', 'Every 6 Months', 'Yearly', 'Every 4 Weeks', 'Every 6 Weeks', 'Every 8 Weeks'])
149
149
  unless validator.valid?(auto_order_schedule)
150
150
  fail ArgumentError, 'invalid value for "auto_order_schedule", must be one of #{validator.allowable_values}.'
151
151
  end
@@ -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
@@ -47,6 +47,9 @@ module UltracartClient
47
47
  # URI of the webhook delivered to
48
48
  attr_accessor :uri
49
49
 
50
+ # webhook oid
51
+ attr_accessor :webhook_oid
52
+
50
53
  # Attribute mapping from ruby-style variable name to JSON key.
51
54
  def self.attribute_map
52
55
  {
@@ -60,7 +63,8 @@ module UltracartClient
60
63
  :'response_headers' => :'response_headers',
61
64
  :'status_code' => :'status_code',
62
65
  :'success' => :'success',
63
- :'uri' => :'uri'
66
+ :'uri' => :'uri',
67
+ :'webhook_oid' => :'webhook_oid'
64
68
  }
65
69
  end
66
70
 
@@ -77,7 +81,8 @@ module UltracartClient
77
81
  :'response_headers' => :'Array<HTTPHeader>',
78
82
  :'status_code' => :'Integer',
79
83
  :'success' => :'BOOLEAN',
80
- :'uri' => :'String'
84
+ :'uri' => :'String',
85
+ :'webhook_oid' => :'Integer'
81
86
  }
82
87
  end
83
88
 
@@ -136,6 +141,10 @@ module UltracartClient
136
141
  if attributes.has_key?(:'uri')
137
142
  self.uri = attributes[:'uri']
138
143
  end
144
+
145
+ if attributes.has_key?(:'webhook_oid')
146
+ self.webhook_oid = attributes[:'webhook_oid']
147
+ end
139
148
  end
140
149
 
141
150
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -166,7 +175,8 @@ module UltracartClient
166
175
  response_headers == o.response_headers &&
167
176
  status_code == o.status_code &&
168
177
  success == o.success &&
169
- uri == o.uri
178
+ uri == o.uri &&
179
+ webhook_oid == o.webhook_oid
170
180
  end
171
181
 
172
182
  # @see the `==` method
@@ -178,7 +188,7 @@ module UltracartClient
178
188
  # Calculates hash code according to all attributes.
179
189
  # @return [Fixnum] Hash code
180
190
  def hash
181
- [delivery_dts, duration, queue_delay, request, request_headers, request_id, response, response_headers, status_code, success, uri].hash
191
+ [delivery_dts, duration, queue_delay, request, request_headers, request_id, response, response_headers, status_code, success, uri, webhook_oid].hash
182
192
  end
183
193
 
184
194
  # 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.217'
14
+ VERSION = '3.10.219'
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.217
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-10-24 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