ultracart_api 4.0.221 → 4.0.223
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 +6 -4
- data/docs/ConversationPbxTimeBasedMappingConfig.md +2 -2
- data/docs/OrderQuery.md +2 -0
- data/lib/ultracart_api/models/conversation_pbx_time_based_mapping_config.rb +7 -7
- data/lib/ultracart_api/models/order_query.rb +23 -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: ab7e867fde5d59021d0dd6818641123c8d7f8263083e2f83d4638698d1f7f316
|
4
|
+
data.tar.gz: 13553bf85bda48991a81a6e86752819283e064b55cf51c76eb8111efeafe6c0b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3df754fb2a5c8cfbb529d13a06f98ebf84ea9a18b22b5bf2b55443aebf020d2c2a148b39d1156b06238948987334cb6752e9265e8266e0a0c8ee7821d089d7e6
|
7
|
+
data.tar.gz: 518009027faf531e49a1e7530debe1bf4ce78275d5b667bfd1f2263441c27147a683821ba950fb5dfdec3a192f626a6d9221764f8d629799eaa8ab7cebf60122
|
data/README.md
CHANGED
@@ -7,7 +7,7 @@ UltraCart REST API Version 2
|
|
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.0.
|
10
|
+
- Package version: 4.0.223
|
11
11
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
12
12
|
For more information, please visit [http://www.ultracart.com](http://www.ultracart.com)
|
13
13
|
|
@@ -24,16 +24,16 @@ gem build ultracart_api.gemspec
|
|
24
24
|
Then either install the gem locally:
|
25
25
|
|
26
26
|
```shell
|
27
|
-
gem install ./ultracart_api-4.0.
|
27
|
+
gem install ./ultracart_api-4.0.223.gem
|
28
28
|
```
|
29
29
|
|
30
|
-
(for development, run `gem install --dev ./ultracart_api-4.0.
|
30
|
+
(for development, run `gem install --dev ./ultracart_api-4.0.223.gem` to install the development dependencies)
|
31
31
|
|
32
32
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
33
33
|
|
34
34
|
Finally add this to the Gemfile:
|
35
35
|
|
36
|
-
gem 'ultracart_api', '~> 4.0.
|
36
|
+
gem 'ultracart_api', '~> 4.0.223'
|
37
37
|
|
38
38
|
### Install from Git
|
39
39
|
|
@@ -1509,6 +1509,8 @@ Not every change is committed to every SDK.
|
|
1509
1509
|
|
1510
1510
|
| Version | Date | Comments |
|
1511
1511
|
| --: | :-: | --- |
|
1512
|
+
| 4.0.223 | 05/28/2024 | added property to OrderQuery object to allow querying from cache |
|
1513
|
+
| 4.0.222 | 05/17/2024 | conv.pbx time based config - changed name from default to default_mapping |
|
1512
1514
|
| 4.0.221 | 05/16/2024 | OrderPayment - constants for payment method Amazon Pay and Link |
|
1513
1515
|
| 4.0.220 | 05/15/2024 | conversation pbx voicemail mailbox indep. voice properties |
|
1514
1516
|
| 4.0.219 | 05/15/2024 | conversation pbx - missing fields on agent object |
|
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **
|
7
|
+
| **default_mapping** | [**ConversationPbxTimeBasedMapping**](ConversationPbxTimeBasedMapping.md) | | [optional] |
|
8
8
|
| **mappings** | [**Array<ConversationPbxTimeBasedMapping>**](ConversationPbxTimeBasedMapping.md) | Mappings | [optional] |
|
9
9
|
|
10
10
|
## Example
|
@@ -13,7 +13,7 @@
|
|
13
13
|
require 'ultracart_api'
|
14
14
|
|
15
15
|
instance = UltracartClient::ConversationPbxTimeBasedMappingConfig.new(
|
16
|
-
|
16
|
+
default_mapping: null,
|
17
17
|
mappings: null
|
18
18
|
)
|
19
19
|
```
|
data/docs/OrderQuery.md
CHANGED
@@ -35,6 +35,7 @@
|
|
35
35
|
| **phone** | **String** | Phone | [optional] |
|
36
36
|
| **postal_code** | **String** | Postal code | [optional] |
|
37
37
|
| **purchase_order_number** | **String** | Purchase order number | [optional] |
|
38
|
+
| **query_target** | **String** | Query Target | [optional] |
|
38
39
|
| **refund_date_begin** | **String** | Date/time that the order was refunded | [optional] |
|
39
40
|
| **refund_date_end** | **String** | Date/time that the order was refunded | [optional] |
|
40
41
|
| **rma** | **String** | RMA number | [optional] |
|
@@ -84,6 +85,7 @@ instance = UltracartClient::OrderQuery.new(
|
|
84
85
|
phone: null,
|
85
86
|
postal_code: null,
|
86
87
|
purchase_order_number: null,
|
88
|
+
query_target: null,
|
87
89
|
refund_date_begin: null,
|
88
90
|
refund_date_end: null,
|
89
91
|
rma: null,
|
@@ -15,7 +15,7 @@ require 'time'
|
|
15
15
|
|
16
16
|
module UltracartClient
|
17
17
|
class ConversationPbxTimeBasedMappingConfig
|
18
|
-
attr_accessor :
|
18
|
+
attr_accessor :default_mapping
|
19
19
|
|
20
20
|
# Mappings
|
21
21
|
attr_accessor :mappings
|
@@ -23,7 +23,7 @@ module UltracartClient
|
|
23
23
|
# Attribute mapping from ruby-style variable name to JSON key.
|
24
24
|
def self.attribute_map
|
25
25
|
{
|
26
|
-
:'
|
26
|
+
:'default_mapping' => :'default_mapping',
|
27
27
|
:'mappings' => :'mappings'
|
28
28
|
}
|
29
29
|
end
|
@@ -36,7 +36,7 @@ module UltracartClient
|
|
36
36
|
# Attribute type mapping.
|
37
37
|
def self.openapi_types
|
38
38
|
{
|
39
|
-
:'
|
39
|
+
:'default_mapping' => :'ConversationPbxTimeBasedMapping',
|
40
40
|
:'mappings' => :'Array<ConversationPbxTimeBasedMapping>'
|
41
41
|
}
|
42
42
|
end
|
@@ -62,8 +62,8 @@ module UltracartClient
|
|
62
62
|
h[k.to_sym] = v
|
63
63
|
}
|
64
64
|
|
65
|
-
if attributes.key?(:'
|
66
|
-
self.
|
65
|
+
if attributes.key?(:'default_mapping')
|
66
|
+
self.default_mapping = attributes[:'default_mapping']
|
67
67
|
end
|
68
68
|
|
69
69
|
if attributes.key?(:'mappings')
|
@@ -91,7 +91,7 @@ module UltracartClient
|
|
91
91
|
def ==(o)
|
92
92
|
return true if self.equal?(o)
|
93
93
|
self.class == o.class &&
|
94
|
-
|
94
|
+
default_mapping == o.default_mapping &&
|
95
95
|
mappings == o.mappings
|
96
96
|
end
|
97
97
|
|
@@ -104,7 +104,7 @@ module UltracartClient
|
|
104
104
|
# Calculates hash code according to all attributes.
|
105
105
|
# @return [Integer] Hash code
|
106
106
|
def hash
|
107
|
-
[
|
107
|
+
[default_mapping, mappings].hash
|
108
108
|
end
|
109
109
|
|
110
110
|
# Builds the object from hash
|
@@ -108,6 +108,9 @@ module UltracartClient
|
|
108
108
|
# Purchase order number
|
109
109
|
attr_accessor :purchase_order_number
|
110
110
|
|
111
|
+
# Query Target
|
112
|
+
attr_accessor :query_target
|
113
|
+
|
111
114
|
# Date/time that the order was refunded
|
112
115
|
attr_accessor :refund_date_begin
|
113
116
|
|
@@ -197,6 +200,7 @@ module UltracartClient
|
|
197
200
|
:'phone' => :'phone',
|
198
201
|
:'postal_code' => :'postal_code',
|
199
202
|
:'purchase_order_number' => :'purchase_order_number',
|
203
|
+
:'query_target' => :'query_target',
|
200
204
|
:'refund_date_begin' => :'refund_date_begin',
|
201
205
|
:'refund_date_end' => :'refund_date_end',
|
202
206
|
:'rma' => :'rma',
|
@@ -250,6 +254,7 @@ module UltracartClient
|
|
250
254
|
:'phone' => :'String',
|
251
255
|
:'postal_code' => :'String',
|
252
256
|
:'purchase_order_number' => :'String',
|
257
|
+
:'query_target' => :'String',
|
253
258
|
:'refund_date_begin' => :'String',
|
254
259
|
:'refund_date_end' => :'String',
|
255
260
|
:'rma' => :'String',
|
@@ -409,6 +414,10 @@ module UltracartClient
|
|
409
414
|
self.purchase_order_number = attributes[:'purchase_order_number']
|
410
415
|
end
|
411
416
|
|
417
|
+
if attributes.key?(:'query_target')
|
418
|
+
self.query_target = attributes[:'query_target']
|
419
|
+
end
|
420
|
+
|
412
421
|
if attributes.key?(:'refund_date_begin')
|
413
422
|
self.refund_date_begin = attributes[:'refund_date_begin']
|
414
423
|
end
|
@@ -525,6 +534,8 @@ module UltracartClient
|
|
525
534
|
return false unless payment_method_validator.valid?(@payment_method)
|
526
535
|
return false if !@phone.nil? && @phone.to_s.length > 25
|
527
536
|
return false if !@postal_code.nil? && @postal_code.to_s.length > 20
|
537
|
+
query_target_validator = EnumAttributeValidator.new('String', ["origin", "cache"])
|
538
|
+
return false unless query_target_validator.valid?(@query_target)
|
528
539
|
return false if !@rma.nil? && @rma.to_s.length > 30
|
529
540
|
return false if !@screen_branding_theme_code.nil? && @screen_branding_theme_code.to_s.length > 10
|
530
541
|
return false if !@state_region.nil? && @state_region.to_s.length > 32
|
@@ -641,6 +652,16 @@ module UltracartClient
|
|
641
652
|
@postal_code = postal_code
|
642
653
|
end
|
643
654
|
|
655
|
+
# Custom attribute writer method checking allowed values (enum).
|
656
|
+
# @param [Object] query_target Object to be assigned
|
657
|
+
def query_target=(query_target)
|
658
|
+
validator = EnumAttributeValidator.new('String', ["origin", "cache"])
|
659
|
+
unless validator.valid?(query_target)
|
660
|
+
fail ArgumentError, "invalid value for \"query_target\", must be one of #{validator.allowable_values}."
|
661
|
+
end
|
662
|
+
@query_target = query_target
|
663
|
+
end
|
664
|
+
|
644
665
|
# Custom attribute writer method with validation
|
645
666
|
# @param [Object] rma Value to be assigned
|
646
667
|
def rma=(rma)
|
@@ -707,6 +728,7 @@ module UltracartClient
|
|
707
728
|
phone == o.phone &&
|
708
729
|
postal_code == o.postal_code &&
|
709
730
|
purchase_order_number == o.purchase_order_number &&
|
731
|
+
query_target == o.query_target &&
|
710
732
|
refund_date_begin == o.refund_date_begin &&
|
711
733
|
refund_date_end == o.refund_date_end &&
|
712
734
|
rma == o.rma &&
|
@@ -729,7 +751,7 @@ module UltracartClient
|
|
729
751
|
# Calculates hash code according to all attributes.
|
730
752
|
# @return [Integer] Hash code
|
731
753
|
def hash
|
732
|
-
[cc_email, channel_partner_code, channel_partner_order_id, city, company, country_code, creation_date_begin, creation_date_end, current_stage, custom_field_1, custom_field_10, custom_field_2, custom_field_3, custom_field_4, custom_field_5, custom_field_6, custom_field_7, custom_field_8, custom_field_9, customer_profile_oid, email, first_name, item_id, last_name, order_id, payment_date_begin, payment_date_end, payment_method, phone, postal_code, purchase_order_number, refund_date_begin, refund_date_end, rma, screen_branding_theme_code, shipment_date_begin, shipment_date_end, shipped_on_date_begin, shipped_on_date_end, state_region, storefront_host_name, total].hash
|
754
|
+
[cc_email, channel_partner_code, channel_partner_order_id, city, company, country_code, creation_date_begin, creation_date_end, current_stage, custom_field_1, custom_field_10, custom_field_2, custom_field_3, custom_field_4, custom_field_5, custom_field_6, custom_field_7, custom_field_8, custom_field_9, customer_profile_oid, email, first_name, item_id, last_name, order_id, payment_date_begin, payment_date_end, payment_method, phone, postal_code, purchase_order_number, query_target, refund_date_begin, refund_date_end, rma, screen_branding_theme_code, shipment_date_begin, shipment_date_end, shipped_on_date_begin, shipped_on_date_end, state_region, storefront_host_name, total].hash
|
733
755
|
end
|
734
756
|
|
735
757
|
# 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: 4.0.
|
4
|
+
version: 4.0.223
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- UltraCart
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-05-
|
11
|
+
date: 2024-05-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|