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 +4 -4
- data/README.md +5 -4
- data/docs/CouponCodesRequest.md +1 -0
- data/lib/ultracart_api/models/coupon_codes_request.rb +26 -1
- data/lib/ultracart_api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 00d714f5cd30771205d265a7c8b89da2d4b3f05f0714758c5c56b6b11840904c
|
|
4
|
+
data.tar.gz: dcabe629bb4138b952572d92a309c6bb2f26017de00c85f64d47b10b9e516386
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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.
|
|
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.
|
|
27
|
+
gem install ./ultracart_api-3.11.43.gem
|
|
28
28
|
```
|
|
29
|
-
(for development, run `gem install --dev ./ultracart_api-3.11.
|
|
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.
|
|
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 |
|
data/docs/CouponCodesRequest.md
CHANGED
|
@@ -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
|
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.
|
|
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-
|
|
11
|
+
date: 2026-01-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: typhoeus
|