ultracart_api 4.1.42 → 4.1.43

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: 2e821d1748e8e14d0a8a1d2264553c7293eca5ab33a76bf47b88900611004937
4
- data.tar.gz: 8e6e9c90f13c3f420ebea8050b50d8e3340ab273704bbdf12b864224233f5c56
3
+ metadata.gz: 1b5be4e83294986018fcf1b28a119d5faabd60ebfc33c2ac6ffcd19da37f75c5
4
+ data.tar.gz: 858d0f8222143ff75e606f9f5f568880be04c179fcf40b87196582a6f2d3306a
5
5
  SHA512:
6
- metadata.gz: 4233496419ab761eddc3ef86fa2ed5faa00c6846999d7a59f2c0d55220ca6c4b5d6446b216b0168ddde6cbb9545e4bf3fed3aedd6f46c8f4ea7b34dc4d2c0ee1
7
- data.tar.gz: 3ee9f55312913081e00d811c697355a24202803f0eb1316cc24af60a17f642b43f9d6f70f46daded60c9fb9911f4cec6d2457daeb64c3bcc3569c4f8b3ab5e2e
6
+ metadata.gz: 0f53accc7bc75142f38d3cb6fa7e09e6243b5427c08639614527c9640e3312669db8dfb6979c99378d08525117d5a3f718ba4025f1f5e47911c9e934053d6226
7
+ data.tar.gz: 55d1f763e38fd26e1edbd952d9ee45c095b6a26509644b047ff4a3eedadf071438e65224dfa1507a3f66fed359cba9c1b807b0dc9f8f5816808c08ea3a79d55e
data/README.md CHANGED
@@ -7,7 +7,7 @@ Note: Every method has a sample for every language. See https://github.com/Ultr
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.1.42
10
+ - Package version: 4.1.43
11
11
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
12
12
  - For more information, please visit [http://www.ultracart.com/api/](http://www.ultracart.com/api/)
13
13
 
@@ -16,7 +16,7 @@ This SDK is automatically generated by the [OpenAPI Generator](https://openapi-g
16
16
  gemfile:
17
17
 
18
18
  ```shell
19
- gem 'ultracart_api', '4.1.42'
19
+ gem 'ultracart_api', '4.1.43'
20
20
  ```
21
21
 
22
22
  install:
@@ -1621,6 +1621,7 @@ Not every change is committed to every SDK.
1621
1621
 
1622
1622
  | Version | Date | Comments |
1623
1623
  | --: | :-: | --- |
1624
+ | 4.1.43 | 01/14/2026 | coupons - generate one time coupons prefix support (optional) |
1624
1625
  | 4.1.42 | 01/13/2026 | conversations - pbx methods for phone number purchasing |
1625
1626
  | 4.1.41 | 01/13/2026 | conversations - pbx methods for phone number purchasing |
1626
1627
  | 4.1.40 | 01/07/2026 | convseration - AI agent profile voice settings |
@@ -8,6 +8,7 @@
8
8
  | **expiration_dts** | **String** | Expiration Date | [optional] |
9
9
  | **expiration_seconds** | **Integer** | Expiration seconds | [optional] |
10
10
  | **metadata** | [**ResponseMetadata**](ResponseMetadata.md) | | [optional] |
11
+ | **prefix** | **String** | Optional prefix for generated codes | [optional] |
11
12
  | **quantity** | **Integer** | Quantity | [optional] |
12
13
  | **success** | **Boolean** | Indicates if API call was successful | [optional] |
13
14
  | **warning** | [**Warning**](Warning.md) | | [optional] |
@@ -22,6 +23,7 @@ instance = UltracartClient::CouponCodesRequest.new(
22
23
  expiration_dts: null,
23
24
  expiration_seconds: null,
24
25
  metadata: null,
26
+ prefix: null,
25
27
  quantity: null,
26
28
  success: null,
27
29
  warning: null
@@ -25,6 +25,9 @@ module UltracartClient
25
25
 
26
26
  attr_accessor :metadata
27
27
 
28
+ # Optional prefix for generated codes
29
+ attr_accessor :prefix
30
+
28
31
  # Quantity
29
32
  attr_accessor :quantity
30
33
 
@@ -40,6 +43,7 @@ module UltracartClient
40
43
  :'expiration_dts' => :'expiration_dts',
41
44
  :'expiration_seconds' => :'expiration_seconds',
42
45
  :'metadata' => :'metadata',
46
+ :'prefix' => :'prefix',
43
47
  :'quantity' => :'quantity',
44
48
  :'success' => :'success',
45
49
  :'warning' => :'warning'
@@ -58,6 +62,7 @@ module UltracartClient
58
62
  :'expiration_dts' => :'String',
59
63
  :'expiration_seconds' => :'Integer',
60
64
  :'metadata' => :'ResponseMetadata',
65
+ :'prefix' => :'String',
61
66
  :'quantity' => :'Integer',
62
67
  :'success' => :'Boolean',
63
68
  :'warning' => :'Warning'
@@ -101,6 +106,10 @@ module UltracartClient
101
106
  self.metadata = attributes[:'metadata']
102
107
  end
103
108
 
109
+ if attributes.key?(:'prefix')
110
+ self.prefix = attributes[:'prefix']
111
+ end
112
+
104
113
  if attributes.key?(:'quantity')
105
114
  self.quantity = attributes[:'quantity']
106
115
  end
@@ -118,15 +127,30 @@ module UltracartClient
118
127
  # @return Array for valid properties with the reasons
119
128
  def list_invalid_properties
120
129
  invalid_properties = Array.new
130
+ if !@prefix.nil? && @prefix.to_s.length > 12
131
+ invalid_properties.push('invalid value for "prefix", the character length must be smaller than or equal to 12.')
132
+ end
133
+
121
134
  invalid_properties
122
135
  end
123
136
 
124
137
  # Check to see if the all the properties in the model are valid
125
138
  # @return true if the model is valid
126
139
  def valid?
140
+ return false if !@prefix.nil? && @prefix.to_s.length > 12
127
141
  true
128
142
  end
129
143
 
144
+ # Custom attribute writer method with validation
145
+ # @param [Object] prefix Value to be assigned
146
+ def prefix=(prefix)
147
+ if !prefix.nil? && prefix.to_s.length > 12
148
+ fail ArgumentError, 'invalid value for "prefix", the character length must be smaller than or equal to 12.'
149
+ end
150
+
151
+ @prefix = prefix
152
+ end
153
+
130
154
  # Checks equality by comparing each attribute.
131
155
  # @param [Object] Object to be compared
132
156
  def ==(o)
@@ -136,6 +160,7 @@ module UltracartClient
136
160
  expiration_dts == o.expiration_dts &&
137
161
  expiration_seconds == o.expiration_seconds &&
138
162
  metadata == o.metadata &&
163
+ prefix == o.prefix &&
139
164
  quantity == o.quantity &&
140
165
  success == o.success &&
141
166
  warning == o.warning
@@ -150,7 +175,7 @@ module UltracartClient
150
175
  # Calculates hash code according to all attributes.
151
176
  # @return [Integer] Hash code
152
177
  def hash
153
- [error, expiration_dts, expiration_seconds, metadata, quantity, success, warning].hash
178
+ [error, expiration_dts, expiration_seconds, metadata, prefix, quantity, success, warning].hash
154
179
  end
155
180
 
156
181
  # 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.1.42'
14
+ VERSION = '4.1.43'
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.1.42
4
+ version: 4.1.43
5
5
  platform: ruby
6
6
  authors:
7
7
  - UltraCart
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-01-13 00:00:00.000000000 Z
11
+ date: 2026-01-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus