ultracart_api 3.11.42 → 3.11.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: 15984eb59d54a5898abf32fdc844cee6798b12891c4b000d5dd86008549c3a9d
4
- data.tar.gz: 1e22f6e0fcded41438256502d8a0024fd50e965863e6eb10c7919564f7128771
3
+ metadata.gz: 00d714f5cd30771205d265a7c8b89da2d4b3f05f0714758c5c56b6b11840904c
4
+ data.tar.gz: dcabe629bb4138b952572d92a309c6bb2f26017de00c85f64d47b10b9e516386
5
5
  SHA512:
6
- metadata.gz: eeeb67dd5ba7310fef978235ba7ab39fe8a1e47bc35e10da030ae9018f0fe48b7eb0f9cd6969851625a9221185f41cf37c45e255c97ed95ac5dbeb649163c369
7
- data.tar.gz: e5082ac7bebd147e478cef8836bd265bd92eeed138267e245d164989f47e6d358fe24c67e135633d499bf83e538c3068b41467d64c8f6222f7b11d0227cc6053
6
+ metadata.gz: e63ea40593662b1dc6d2cde7370e67667c701ef64d9d8a2228d12f4be401f69cdd31b8d4241d9240096fea10a7287a1317312fa369b827a0e123b9baa9d4658f
7
+ data.tar.gz: 1bc96080e27cc108d0a9686afed6abaaa1aff3c4c8cfb27bc743c5ea1ba6e928b4b789536582b3f18e7a2bd6abea3f944958f0b4f63ef3c43dca0b8ee4a0194b
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.42
10
+ - Package version: 3.11.43
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.42.gem
27
+ gem install ./ultracart_api-3.11.43.gem
28
28
  ```
29
- (for development, run `gem install --dev ./ultracart_api-3.11.42.gem` to install the development dependencies)
29
+ (for development, run `gem install --dev ./ultracart_api-3.11.43.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.42'
35
+ gem 'ultracart_api', '~> 3.11.43'
36
36
 
37
37
  ### Install from Git
38
38
 
@@ -1623,6 +1623,7 @@ Not every change is committed to every SDK.
1623
1623
 
1624
1624
  | Version | Date | Comments |
1625
1625
  | --: | :-: | --- |
1626
+ | 3.11.43 | 01/14/2026 | coupons - generate one time coupons prefix support (optional) |
1626
1627
  | 3.11.42 | 01/13/2026 | conversations - pbx methods for phone number purchasing |
1627
1628
  | 3.11.41 | 01/13/2026 | conversations - pbx methods for phone number purchasing |
1628
1629
  | 3.11.40 | 01/07/2026 | convseration - AI agent profile voice settings |
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
7
7
  **expiration_dts** | **String** | Expiration Date | [optional]
8
8
  **expiration_seconds** | **Integer** | Expiration seconds | [optional]
9
9
  **metadata** | [**ResponseMetadata**](ResponseMetadata.md) | | [optional]
10
+ **prefix** | **String** | Optional prefix for generated codes | [optional]
10
11
  **quantity** | **Integer** | Quantity | [optional]
11
12
  **success** | **BOOLEAN** | Indicates if API call was successful | [optional]
12
13
  **warning** | [**Warning**](Warning.md) | | [optional]
@@ -24,6 +24,9 @@ module UltracartClient
24
24
 
25
25
  attr_accessor :metadata
26
26
 
27
+ # Optional prefix for generated codes
28
+ attr_accessor :prefix
29
+
27
30
  # Quantity
28
31
  attr_accessor :quantity
29
32
 
@@ -39,6 +42,7 @@ module UltracartClient
39
42
  :'expiration_dts' => :'expiration_dts',
40
43
  :'expiration_seconds' => :'expiration_seconds',
41
44
  :'metadata' => :'metadata',
45
+ :'prefix' => :'prefix',
42
46
  :'quantity' => :'quantity',
43
47
  :'success' => :'success',
44
48
  :'warning' => :'warning'
@@ -52,6 +56,7 @@ module UltracartClient
52
56
  :'expiration_dts' => :'String',
53
57
  :'expiration_seconds' => :'Integer',
54
58
  :'metadata' => :'ResponseMetadata',
59
+ :'prefix' => :'String',
55
60
  :'quantity' => :'Integer',
56
61
  :'success' => :'BOOLEAN',
57
62
  :'warning' => :'Warning'
@@ -82,6 +87,10 @@ module UltracartClient
82
87
  self.metadata = attributes[:'metadata']
83
88
  end
84
89
 
90
+ if attributes.has_key?(:'prefix')
91
+ self.prefix = attributes[:'prefix']
92
+ end
93
+
85
94
  if attributes.has_key?(:'quantity')
86
95
  self.quantity = attributes[:'quantity']
87
96
  end
@@ -99,15 +108,30 @@ module UltracartClient
99
108
  # @return Array for valid properties with the reasons
100
109
  def list_invalid_properties
101
110
  invalid_properties = Array.new
111
+ if !@prefix.nil? && @prefix.to_s.length > 12
112
+ invalid_properties.push('invalid value for "prefix", the character length must be smaller than or equal to 12.')
113
+ end
114
+
102
115
  invalid_properties
103
116
  end
104
117
 
105
118
  # Check to see if the all the properties in the model are valid
106
119
  # @return true if the model is valid
107
120
  def valid?
121
+ return false if !@prefix.nil? && @prefix.to_s.length > 12
108
122
  true
109
123
  end
110
124
 
125
+ # Custom attribute writer method with validation
126
+ # @param [Object] prefix Value to be assigned
127
+ def prefix=(prefix)
128
+ if !prefix.nil? && prefix.to_s.length > 12
129
+ fail ArgumentError, 'invalid value for "prefix", the character length must be smaller than or equal to 12.'
130
+ end
131
+
132
+ @prefix = prefix
133
+ end
134
+
111
135
  # Checks equality by comparing each attribute.
112
136
  # @param [Object] Object to be compared
113
137
  def ==(o)
@@ -117,6 +141,7 @@ module UltracartClient
117
141
  expiration_dts == o.expiration_dts &&
118
142
  expiration_seconds == o.expiration_seconds &&
119
143
  metadata == o.metadata &&
144
+ prefix == o.prefix &&
120
145
  quantity == o.quantity &&
121
146
  success == o.success &&
122
147
  warning == o.warning
@@ -131,7 +156,7 @@ module UltracartClient
131
156
  # Calculates hash code according to all attributes.
132
157
  # @return [Fixnum] Hash code
133
158
  def hash
134
- [error, expiration_dts, expiration_seconds, metadata, quantity, success, warning].hash
159
+ [error, expiration_dts, expiration_seconds, metadata, prefix, quantity, success, warning].hash
135
160
  end
136
161
 
137
162
  # 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.42'
14
+ VERSION = '3.11.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: 3.11.42
4
+ version: 3.11.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