ultracart_api 3.11.33 → 3.11.34

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: d508630490dcc323c85795f81f82eb287507dc1fd2f0364b23265aae228d9f34
4
- data.tar.gz: 278463342c54274fdc77271d5cea1f56dfa628b55102bdbfcec328da07ea0547
3
+ metadata.gz: 5d9dd10c57529f46db1e3e6c20255aee480d66195a0ed8d4533e99ecdb4c2298
4
+ data.tar.gz: 8169e071cd3d7e95be459369a881d4e78fff82c25673a742a7bc31e9acda09b0
5
5
  SHA512:
6
- metadata.gz: 0ab7d5fd8f7846ff9c6f6c097dfd849690fa15af0d4a2836a8a3704ce4f43f1d3d2dd1c0e6a25e3fc99b5ba54715da8885ab71b96aa976c2a3a0131871ac841e
7
- data.tar.gz: 36089124805452a530233b7253e4e7ed0fe4354959fa12f15b3f1c4265594f14fc9e0f9b64a055edc1a51941181ec0b6818175ddeac1c377126d311d334e7989
6
+ metadata.gz: 77b9ffadcd36162a43caef78eb0b3f50a156da820c90359b649278f6e36e97e701273e24f0e1d5e76755527cf39c6f0171861df115d259ba76893e824e198893
7
+ data.tar.gz: faa2cccfb8b349e20d84aca8e3cf888336674fbff25a718e9df3c6460e6e51dee32283611128ccd53166d2d677be01a51e9769f366d454f6dfac08d054fd82fc
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.11.33
10
+ - Package version: 3.11.34
11
11
  - Build package: io.swagger.codegen.languages.RubyClientCodegen
12
12
  For more information, please visit [http://www.ultracart.com/api/](http://www.ultracart.com/api/)
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.11.33.gem
27
+ gem install ./ultracart_api-3.11.34.gem
28
28
  ```
29
- (for development, run `gem install --dev ./ultracart_api-3.11.33.gem` to install the development dependencies)
29
+ (for development, run `gem install --dev ./ultracart_api-3.11.34.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.11.33'
35
+ gem 'ultracart_api', '~> 3.11.34'
36
36
 
37
37
  ### Install from Git
38
38
 
@@ -1601,6 +1601,7 @@ Not every change is committed to every SDK.
1601
1601
 
1602
1602
  | Version | Date | Comments |
1603
1603
  | --: | :-: | --- |
1604
+ | 3.11.34 | 12/02/2025 | coupons - added optional free specific shipping method to two coupons |
1604
1605
  | 3.11.33 | 11/26/2025 | conversation - AI agent profile fields |
1605
1606
  | 3.11.32 | 11/20/2025 | conversion api bug fix on incorrect signature |
1606
1607
  | 3.11.31 | 11/20/2025 | conversation - AI agent mcp server tools function |
@@ -7,5 +7,6 @@ Name | Type | Description | Notes
7
7
  **limit** | **Integer** | The (optional) maximum quantity of discounted items. Free shipping will apply to all units of the free item ids though. | [optional]
8
8
  **match_required_purchase_item_to_free_item** | **BOOLEAN** | If true then the free item is matched 1:1 with the free item in the list. | [optional]
9
9
  **required_purchase_items** | **Array<String>** | Required items (at least one from the list) that must be purchased for coupon to be valid | [optional]
10
+ **shipping_methods** | **Array<String>** | One or more shipping methods that may be used with this coupon. If not specified or empty, methods that are marked as qualifies for free shipping will be the only free methods | [optional]
10
11
 
11
12
 
@@ -8,5 +8,6 @@ Name | Type | Description | Notes
8
8
  **excluded_items** | **Array<String>** | A list of items which cannot be discounted. | [optional]
9
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]
10
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]
11
+ **shipping_methods** | **Array<String>** | One or more shipping methods that may be used with this coupon. If not specified or empty, methods that are marked as qualifies for free shipping will be the only free methods | [optional]
11
12
 
12
13
 
@@ -26,13 +26,17 @@ module UltracartClient
26
26
  # Required items (at least one from the list) that must be purchased for coupon to be valid
27
27
  attr_accessor :required_purchase_items
28
28
 
29
+ # One or more shipping methods that may be used with this coupon. If not specified or empty, methods that are marked as qualifies for free shipping will be the only free methods
30
+ attr_accessor :shipping_methods
31
+
29
32
  # Attribute mapping from ruby-style variable name to JSON key.
30
33
  def self.attribute_map
31
34
  {
32
35
  :'items' => :'items',
33
36
  :'limit' => :'limit',
34
37
  :'match_required_purchase_item_to_free_item' => :'match_required_purchase_item_to_free_item',
35
- :'required_purchase_items' => :'required_purchase_items'
38
+ :'required_purchase_items' => :'required_purchase_items',
39
+ :'shipping_methods' => :'shipping_methods'
36
40
  }
37
41
  end
38
42
 
@@ -42,7 +46,8 @@ module UltracartClient
42
46
  :'items' => :'Array<String>',
43
47
  :'limit' => :'Integer',
44
48
  :'match_required_purchase_item_to_free_item' => :'BOOLEAN',
45
- :'required_purchase_items' => :'Array<String>'
49
+ :'required_purchase_items' => :'Array<String>',
50
+ :'shipping_methods' => :'Array<String>'
46
51
  }
47
52
  end
48
53
 
@@ -73,6 +78,12 @@ module UltracartClient
73
78
  self.required_purchase_items = value
74
79
  end
75
80
  end
81
+
82
+ if attributes.has_key?(:'shipping_methods')
83
+ if (value = attributes[:'shipping_methods']).is_a?(Array)
84
+ self.shipping_methods = value
85
+ end
86
+ end
76
87
  end
77
88
 
78
89
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -96,7 +107,8 @@ module UltracartClient
96
107
  items == o.items &&
97
108
  limit == o.limit &&
98
109
  match_required_purchase_item_to_free_item == o.match_required_purchase_item_to_free_item &&
99
- required_purchase_items == o.required_purchase_items
110
+ required_purchase_items == o.required_purchase_items &&
111
+ shipping_methods == o.shipping_methods
100
112
  end
101
113
 
102
114
  # @see the `==` method
@@ -108,7 +120,7 @@ module UltracartClient
108
120
  # Calculates hash code according to all attributes.
109
121
  # @return [Fixnum] Hash code
110
122
  def hash
111
- [items, limit, match_required_purchase_item_to_free_item, required_purchase_items].hash
123
+ [items, limit, match_required_purchase_item_to_free_item, required_purchase_items, shipping_methods].hash
112
124
  end
113
125
 
114
126
  # Builds the object from hash
@@ -29,6 +29,9 @@ module UltracartClient
29
29
  # An optional list of items which will receive a discount. If blank, discount applies to all items except excluded items.
30
30
  attr_accessor :items
31
31
 
32
+ # One or more shipping methods that may be used with this coupon. If not specified or empty, methods that are marked as qualifies for free shipping will be the only free methods
33
+ attr_accessor :shipping_methods
34
+
32
35
  # Attribute mapping from ruby-style variable name to JSON key.
33
36
  def self.attribute_map
34
37
  {
@@ -36,7 +39,8 @@ module UltracartClient
36
39
  :'excluded_item_tags' => :'excluded_item_tags',
37
40
  :'excluded_items' => :'excluded_items',
38
41
  :'item_tags' => :'item_tags',
39
- :'items' => :'items'
42
+ :'items' => :'items',
43
+ :'shipping_methods' => :'shipping_methods'
40
44
  }
41
45
  end
42
46
 
@@ -47,7 +51,8 @@ module UltracartClient
47
51
  :'excluded_item_tags' => :'Array<String>',
48
52
  :'excluded_items' => :'Array<String>',
49
53
  :'item_tags' => :'Array<String>',
50
- :'items' => :'Array<String>'
54
+ :'items' => :'Array<String>',
55
+ :'shipping_methods' => :'Array<String>'
51
56
  }
52
57
  end
53
58
 
@@ -86,6 +91,12 @@ module UltracartClient
86
91
  self.items = value
87
92
  end
88
93
  end
94
+
95
+ if attributes.has_key?(:'shipping_methods')
96
+ if (value = attributes[:'shipping_methods']).is_a?(Array)
97
+ self.shipping_methods = value
98
+ end
99
+ end
89
100
  end
90
101
 
91
102
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -110,7 +121,8 @@ module UltracartClient
110
121
  excluded_item_tags == o.excluded_item_tags &&
111
122
  excluded_items == o.excluded_items &&
112
123
  item_tags == o.item_tags &&
113
- items == o.items
124
+ items == o.items &&
125
+ shipping_methods == o.shipping_methods
114
126
  end
115
127
 
116
128
  # @see the `==` method
@@ -122,7 +134,7 @@ module UltracartClient
122
134
  # Calculates hash code according to all attributes.
123
135
  # @return [Fixnum] Hash code
124
136
  def hash
125
- [discount_percent, excluded_item_tags, excluded_items, item_tags, items].hash
137
+ [discount_percent, excluded_item_tags, excluded_items, item_tags, items, shipping_methods].hash
126
138
  end
127
139
 
128
140
  # 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.11.33'
14
+ VERSION = '3.11.34'
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.11.33
4
+ version: 3.11.34
5
5
  platform: ruby
6
6
  authors:
7
7
  - UltraCart
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-11-26 00:00:00.000000000 Z
11
+ date: 2025-12-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus