ultracart_api 4.1.41 → 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: 595b3033ad472ccc0aa3d78aa1f6a70d651bfd8eba98e9be117be4472661a6b1
4
- data.tar.gz: 8194ad91b9acfedc80fc3252b03b14634a67d163ca01cdf68c4aac84c8c7d549
3
+ metadata.gz: 1b5be4e83294986018fcf1b28a119d5faabd60ebfc33c2ac6ffcd19da37f75c5
4
+ data.tar.gz: 858d0f8222143ff75e606f9f5f568880be04c179fcf40b87196582a6f2d3306a
5
5
  SHA512:
6
- metadata.gz: '0582649d3d7650856dda1b5abadf50c80763fe54f77618cbed053f0ec1b546e99833d256907715ec5134b0ed41d9423fa57a75500d9087af3cdd9d0bb1b9f129'
7
- data.tar.gz: ed20b91310e7e0c24eba78318399b3b4421e1e965abaae0c2336a90e823730e90b40bb0ca2e2d899e5e8acf2ce5a12ced62698764284da883bafc14ad8dca8c7
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.41
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.41'
19
+ gem 'ultracart_api', '4.1.43'
20
20
  ```
21
21
 
22
22
  install:
@@ -1621,6 +1621,8 @@ 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) |
1625
+ | 4.1.42 | 01/13/2026 | conversations - pbx methods for phone number purchasing |
1624
1626
  | 4.1.41 | 01/13/2026 | conversations - pbx methods for phone number purchasing |
1625
1627
  | 4.1.40 | 01/07/2026 | convseration - AI agent profile voice settings |
1626
1628
  | 4.1.39 | 12/31/2025 | conversations AI - queue AI settings |
@@ -14,6 +14,7 @@
14
14
  | **postal_code** | **String** | Postal code | [optional] |
15
15
  | **region** | **String** | State/Province/Region | [optional] |
16
16
  | **street** | **String** | Street address | [optional] |
17
+ | **valid** | **Boolean** | Whether the address is valid (validated or verified) | [optional] |
17
18
  | **validated** | **Boolean** | Whether the address has been validated by Twilio | [optional] |
18
19
  | **verified** | **Boolean** | Whether the address has been verified by Twilio | [optional] |
19
20
 
@@ -33,6 +34,7 @@ instance = UltracartClient::ConversationPbxAddress.new(
33
34
  postal_code: null,
34
35
  region: null,
35
36
  street: null,
37
+ valid: null,
36
38
  validated: null,
37
39
  verified: null
38
40
  )
@@ -9,6 +9,7 @@
9
9
  | **friendly_name** | **String** | Friendly formatted phone number | [optional] |
10
10
  | **locality** | **String** | City/Locality | [optional] |
11
11
  | **mms** | **Boolean** | MMS capability | [optional] |
12
+ | **monthly_cost** | **Float** | Monthly cost for this phone number | [optional] |
12
13
  | **phone_number** | **String** | Phone number in E.164 format | [optional] |
13
14
  | **region** | **String** | State/Province/Region | [optional] |
14
15
  | **sms** | **Boolean** | SMS capability | [optional] |
@@ -25,6 +26,7 @@ instance = UltracartClient::ConversationPbxAvailablePhoneNumber.new(
25
26
  friendly_name: null,
26
27
  locality: null,
27
28
  mms: null,
29
+ monthly_cost: null,
28
30
  phone_number: null,
29
31
  region: null,
30
32
  sms: null,
@@ -6,6 +6,7 @@
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **action** | **String** | Action | [optional] |
8
8
  | **action_target** | **String** | Action target. This is the UUID associated with the configuration object of that particular type. | [optional] |
9
+ | **address_sid** | **String** | Twilio Address SID linked to this phone number for regulatory compliance | [optional] |
9
10
  | **conversation_pbx_phone_number_uuid** | **String** | Conversation Pbx Phone Number UUID | [optional] |
10
11
  | **deletion_protected** | **Boolean** | If true, this phone number cannot be deleted through the API. It must be deleted via the Twilio console. | [optional] |
11
12
  | **merchant_id** | **String** | Merchant Id | [optional] |
@@ -19,6 +20,7 @@ require 'ultracart_api'
19
20
  instance = UltracartClient::ConversationPbxPhoneNumber.new(
20
21
  action: null,
21
22
  action_target: null,
23
+ address_sid: null,
22
24
  conversation_pbx_phone_number_uuid: null,
23
25
  deletion_protected: null,
24
26
  merchant_id: null,
@@ -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
@@ -45,6 +45,9 @@ module UltracartClient
45
45
  # Street address
46
46
  attr_accessor :street
47
47
 
48
+ # Whether the address is valid (validated or verified)
49
+ attr_accessor :valid
50
+
48
51
  # Whether the address has been validated by Twilio
49
52
  attr_accessor :validated
50
53
 
@@ -64,6 +67,7 @@ module UltracartClient
64
67
  :'postal_code' => :'postal_code',
65
68
  :'region' => :'region',
66
69
  :'street' => :'street',
70
+ :'valid' => :'valid',
67
71
  :'validated' => :'validated',
68
72
  :'verified' => :'verified'
69
73
  }
@@ -87,6 +91,7 @@ module UltracartClient
87
91
  :'postal_code' => :'String',
88
92
  :'region' => :'String',
89
93
  :'street' => :'String',
94
+ :'valid' => :'Boolean',
90
95
  :'validated' => :'Boolean',
91
96
  :'verified' => :'Boolean'
92
97
  }
@@ -153,6 +158,10 @@ module UltracartClient
153
158
  self.street = attributes[:'street']
154
159
  end
155
160
 
161
+ if attributes.key?(:'valid')
162
+ self.valid = attributes[:'valid']
163
+ end
164
+
156
165
  if attributes.key?(:'validated')
157
166
  self.validated = attributes[:'validated']
158
167
  end
@@ -340,6 +349,7 @@ module UltracartClient
340
349
  postal_code == o.postal_code &&
341
350
  region == o.region &&
342
351
  street == o.street &&
352
+ valid == o.valid &&
343
353
  validated == o.validated &&
344
354
  verified == o.verified
345
355
  end
@@ -353,7 +363,7 @@ module UltracartClient
353
363
  # Calculates hash code according to all attributes.
354
364
  # @return [Integer] Hash code
355
365
  def hash
356
- [address_sid, city, conversation_pbx_address_uuid, country_code, customer_name, friendly_name, merchant_id, postal_code, region, street, validated, verified].hash
366
+ [address_sid, city, conversation_pbx_address_uuid, country_code, customer_name, friendly_name, merchant_id, postal_code, region, street, valid, validated, verified].hash
357
367
  end
358
368
 
359
369
  # Builds the object from hash
@@ -30,6 +30,9 @@ module UltracartClient
30
30
  # MMS capability
31
31
  attr_accessor :mms
32
32
 
33
+ # Monthly cost for this phone number
34
+ attr_accessor :monthly_cost
35
+
33
36
  # Phone number in E.164 format
34
37
  attr_accessor :phone_number
35
38
 
@@ -72,6 +75,7 @@ module UltracartClient
72
75
  :'friendly_name' => :'friendly_name',
73
76
  :'locality' => :'locality',
74
77
  :'mms' => :'mms',
78
+ :'monthly_cost' => :'monthly_cost',
75
79
  :'phone_number' => :'phone_number',
76
80
  :'region' => :'region',
77
81
  :'sms' => :'sms',
@@ -92,6 +96,7 @@ module UltracartClient
92
96
  :'friendly_name' => :'String',
93
97
  :'locality' => :'String',
94
98
  :'mms' => :'Boolean',
99
+ :'monthly_cost' => :'Float',
95
100
  :'phone_number' => :'String',
96
101
  :'region' => :'String',
97
102
  :'sms' => :'Boolean',
@@ -140,6 +145,10 @@ module UltracartClient
140
145
  self.mms = attributes[:'mms']
141
146
  end
142
147
 
148
+ if attributes.key?(:'monthly_cost')
149
+ self.monthly_cost = attributes[:'monthly_cost']
150
+ end
151
+
143
152
  if attributes.key?(:'phone_number')
144
153
  self.phone_number = attributes[:'phone_number']
145
154
  end
@@ -267,6 +276,7 @@ module UltracartClient
267
276
  friendly_name == o.friendly_name &&
268
277
  locality == o.locality &&
269
278
  mms == o.mms &&
279
+ monthly_cost == o.monthly_cost &&
270
280
  phone_number == o.phone_number &&
271
281
  region == o.region &&
272
282
  sms == o.sms &&
@@ -282,7 +292,7 @@ module UltracartClient
282
292
  # Calculates hash code according to all attributes.
283
293
  # @return [Integer] Hash code
284
294
  def hash
285
- [address_requirements, country, friendly_name, locality, mms, phone_number, region, sms, voice].hash
295
+ [address_requirements, country, friendly_name, locality, mms, monthly_cost, phone_number, region, sms, voice].hash
286
296
  end
287
297
 
288
298
  # Builds the object from hash
@@ -21,6 +21,9 @@ module UltracartClient
21
21
  # Action target. This is the UUID associated with the configuration object of that particular type.
22
22
  attr_accessor :action_target
23
23
 
24
+ # Twilio Address SID linked to this phone number for regulatory compliance
25
+ attr_accessor :address_sid
26
+
24
27
  # Conversation Pbx Phone Number UUID
25
28
  attr_accessor :conversation_pbx_phone_number_uuid
26
29
 
@@ -60,6 +63,7 @@ module UltracartClient
60
63
  {
61
64
  :'action' => :'action',
62
65
  :'action_target' => :'action_target',
66
+ :'address_sid' => :'address_sid',
63
67
  :'conversation_pbx_phone_number_uuid' => :'conversation_pbx_phone_number_uuid',
64
68
  :'deletion_protected' => :'deletion_protected',
65
69
  :'merchant_id' => :'merchant_id',
@@ -77,6 +81,7 @@ module UltracartClient
77
81
  {
78
82
  :'action' => :'String',
79
83
  :'action_target' => :'String',
84
+ :'address_sid' => :'String',
80
85
  :'conversation_pbx_phone_number_uuid' => :'String',
81
86
  :'deletion_protected' => :'Boolean',
82
87
  :'merchant_id' => :'String',
@@ -113,6 +118,10 @@ module UltracartClient
113
118
  self.action_target = attributes[:'action_target']
114
119
  end
115
120
 
121
+ if attributes.key?(:'address_sid')
122
+ self.address_sid = attributes[:'address_sid']
123
+ end
124
+
116
125
  if attributes.key?(:'conversation_pbx_phone_number_uuid')
117
126
  self.conversation_pbx_phone_number_uuid = attributes[:'conversation_pbx_phone_number_uuid']
118
127
  end
@@ -142,6 +151,10 @@ module UltracartClient
142
151
  invalid_properties.push('invalid value for "action_target", the character length must be smaller than or equal to 50.')
143
152
  end
144
153
 
154
+ if !@address_sid.nil? && @address_sid.to_s.length > 50
155
+ invalid_properties.push('invalid value for "address_sid", the character length must be smaller than or equal to 50.')
156
+ end
157
+
145
158
  if !@conversation_pbx_phone_number_uuid.nil? && @conversation_pbx_phone_number_uuid.to_s.length > 50
146
159
  invalid_properties.push('invalid value for "conversation_pbx_phone_number_uuid", the character length must be smaller than or equal to 50.')
147
160
  end
@@ -164,6 +177,7 @@ module UltracartClient
164
177
  return false unless action_validator.valid?(@action)
165
178
  return false if !@action.nil? && @action.to_s.length > 30
166
179
  return false if !@action_target.nil? && @action_target.to_s.length > 50
180
+ return false if !@address_sid.nil? && @address_sid.to_s.length > 50
167
181
  return false if !@conversation_pbx_phone_number_uuid.nil? && @conversation_pbx_phone_number_uuid.to_s.length > 50
168
182
  return false if !@merchant_id.nil? && @merchant_id.to_s.length > 5
169
183
  return false if !@phone_number.nil? && @phone_number.to_s.length > 50
@@ -190,6 +204,16 @@ module UltracartClient
190
204
  @action_target = action_target
191
205
  end
192
206
 
207
+ # Custom attribute writer method with validation
208
+ # @param [Object] address_sid Value to be assigned
209
+ def address_sid=(address_sid)
210
+ if !address_sid.nil? && address_sid.to_s.length > 50
211
+ fail ArgumentError, 'invalid value for "address_sid", the character length must be smaller than or equal to 50.'
212
+ end
213
+
214
+ @address_sid = address_sid
215
+ end
216
+
193
217
  # Custom attribute writer method with validation
194
218
  # @param [Object] conversation_pbx_phone_number_uuid Value to be assigned
195
219
  def conversation_pbx_phone_number_uuid=(conversation_pbx_phone_number_uuid)
@@ -227,6 +251,7 @@ module UltracartClient
227
251
  self.class == o.class &&
228
252
  action == o.action &&
229
253
  action_target == o.action_target &&
254
+ address_sid == o.address_sid &&
230
255
  conversation_pbx_phone_number_uuid == o.conversation_pbx_phone_number_uuid &&
231
256
  deletion_protected == o.deletion_protected &&
232
257
  merchant_id == o.merchant_id &&
@@ -242,7 +267,7 @@ module UltracartClient
242
267
  # Calculates hash code according to all attributes.
243
268
  # @return [Integer] Hash code
244
269
  def hash
245
- [action, action_target, conversation_pbx_phone_number_uuid, deletion_protected, merchant_id, phone_number].hash
270
+ [action, action_target, address_sid, conversation_pbx_phone_number_uuid, deletion_protected, merchant_id, phone_number].hash
246
271
  end
247
272
 
248
273
  # Builds the object from hash
@@ -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.41'
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.41
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