ultracart_api 4.0.55.rc → 4.0.56.rc
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -5
- data/docs/CartMarketing.md +2 -0
- data/docs/ConversationParticipant.md +2 -0
- data/docs/ConversationWebchatQueueStatusAgent.md +4 -2
- data/docs/OrderBilling.md +4 -0
- data/docs/OrderMarketing.md +2 -0
- data/docs/StorefrontApi.md +1 -1
- data/lib/ultracart_api/api/storefront_api.rb +1 -1
- data/lib/ultracart_api/models/cart_marketing.rb +11 -1
- data/lib/ultracart_api/models/conversation_participant.rb +10 -1
- data/lib/ultracart_api/models/conversation_webchat_queue_status_agent.rb +49 -4
- data/lib/ultracart_api/models/order_billing.rb +51 -1
- data/lib/ultracart_api/models/order_marketing.rb +11 -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: a5c99b11e8fb3701881c7dc1ee38267fee33136000a196a3f69fea713186faa6
|
4
|
+
data.tar.gz: c285cd611624107cc303e8f695f7567dc4c6620dfd34ec43cd8f0e45ef56b3d0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9f9477ed9fa80705fcc33cad4141182679356b2de4b20d072625d4641d8897c13f73b29ab0a0583c458e68bc9f0cb0b05337d4d74bb163d6b4a08d822fdc536e
|
7
|
+
data.tar.gz: ee50fc3fcc32f7b673f6cc1839bad4b48f240283a62b0220e5f64c2198aac9da0f8f1db306f40b0b1905e4942dfe4156a9e6efd0f71e8d8223ecc15484853cf8
|
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.56.rc
|
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.56.rc.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.56.rc.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.56.rc'
|
37
37
|
|
38
38
|
### Install from Git
|
39
39
|
|
@@ -336,7 +336,7 @@ Class | Method | HTTP request | Description
|
|
336
336
|
*UltracartClient::StorefrontApi* | [**get_screen_recordings_by_query**](docs/StorefrontApi.md#get_screen_recordings_by_query) | **POST** /storefront/{storefront_oid}/screen_recordings/query | Query screen recordings
|
337
337
|
*UltracartClient::StorefrontApi* | [**get_screen_recordings_by_segment**](docs/StorefrontApi.md#get_screen_recordings_by_segment) | **POST** /storefront/{storefront_oid}/screen_recordings/segments/{screen_recording_segment_oid}/query | Get screen recordings by segment
|
338
338
|
*UltracartClient::StorefrontApi* | [**get_store_front_pricing_tiers**](docs/StorefrontApi.md#get_store_front_pricing_tiers) | **GET** /storefront/pricing_tiers | Retrieve pricing tiers
|
339
|
-
*UltracartClient::StorefrontApi* | [**get_store_fronts**](docs/StorefrontApi.md#get_store_fronts) | **GET** /storefront
|
339
|
+
*UltracartClient::StorefrontApi* | [**get_store_fronts**](docs/StorefrontApi.md#get_store_fronts) | **GET** /storefront | Get storefronts (internal use only for security reasons)
|
340
340
|
*UltracartClient::StorefrontApi* | [**get_thumbnail_parameters**](docs/StorefrontApi.md#get_thumbnail_parameters) | **POST** /storefront/thumbnailParameters | Get thumbnail parameters
|
341
341
|
*UltracartClient::StorefrontApi* | [**get_transaction_email**](docs/StorefrontApi.md#get_transaction_email) | **GET** /storefront/{storefront_oid}/transaction_email/list/{email_id} | Gets a transaction email object
|
342
342
|
*UltracartClient::StorefrontApi* | [**get_transaction_email_list**](docs/StorefrontApi.md#get_transaction_email_list) | **GET** /storefront/{storefront_oid}/transaction_email/list | Gets a list of transaction email names
|
@@ -1187,6 +1187,7 @@ Not every change is committed to every SDK.
|
|
1187
1187
|
|
1188
1188
|
| Version | Date | Comments |
|
1189
1189
|
| --: | :-: | --- |
|
1190
|
+
| 4.0.56-RC | 08/19/2022 | order api - added cell phone fields for sms |
|
1190
1191
|
| 4.0.55-RC | 08/12/2022 | internal code to allow merchant login as customer |
|
1191
1192
|
| 4.0.54-RC | 08/11/2022 | fix entry_dts type on gift certificate ledger |
|
1192
1193
|
| 4.0.53-RC | 08/10/2022 | conversation event refactoring |
|
data/docs/CartMarketing.md
CHANGED
@@ -5,6 +5,7 @@
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **advertising_source** | **String** | The advertising source the customer indicated | [optional] |
|
8
|
+
| **cell_phone_opt_in** | **Boolean** | True if the customer agrees to receiving marketing SMS messages | [optional] |
|
8
9
|
| **mailing_list_opt_in** | **Boolean** | True if the customer agrees to receiving marketing emails | [optional] |
|
9
10
|
|
10
11
|
## Example
|
@@ -14,6 +15,7 @@ require 'ultracart_api'
|
|
14
15
|
|
15
16
|
instance = UltracartClient::CartMarketing.new(
|
16
17
|
advertising_source: null,
|
18
|
+
cell_phone_opt_in: null,
|
17
19
|
mailing_list_opt_in: null
|
18
20
|
)
|
19
21
|
```
|
@@ -10,6 +10,7 @@
|
|
10
10
|
| **joined_dts** | **String** | Joined conversation date/time | [optional] |
|
11
11
|
| **last_message_dts** | **String** | Last message date/time | [optional] |
|
12
12
|
| **left_dts** | **String** | Left conversation date/time | [optional] |
|
13
|
+
| **profile_image_url** | **String** | | [optional] |
|
13
14
|
| **status** | **String** | | [optional] |
|
14
15
|
| **unread_messages** | **Integer** | | [optional] |
|
15
16
|
|
@@ -25,6 +26,7 @@ instance = UltracartClient::ConversationParticipant.new(
|
|
25
26
|
joined_dts: null,
|
26
27
|
last_message_dts: null,
|
27
28
|
left_dts: null,
|
29
|
+
profile_image_url: null,
|
28
30
|
status: null,
|
29
31
|
unread_messages: null
|
30
32
|
)
|
@@ -4,11 +4,12 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **agent_status** | **String** |
|
7
|
+
| **agent_status** | **String** | Status of the agent | [optional] |
|
8
8
|
| **conversation_participant_arn** | **String** | | [optional] |
|
9
9
|
| **conversation_participant_name** | **String** | | [optional] |
|
10
10
|
| **last_chat_dts** | **String** | Date/time that this agent took their last chat | [optional] |
|
11
11
|
| **next_round_robin** | **Boolean** | | [optional] |
|
12
|
+
| **profile_image_url** | **String** | Profile image URL | [optional] |
|
12
13
|
|
13
14
|
## Example
|
14
15
|
|
@@ -20,7 +21,8 @@ instance = UltracartClient::ConversationWebchatQueueStatusAgent.new(
|
|
20
21
|
conversation_participant_arn: null,
|
21
22
|
conversation_participant_name: null,
|
22
23
|
last_chat_dts: null,
|
23
|
-
next_round_robin: null
|
24
|
+
next_round_robin: null,
|
25
|
+
profile_image_url: null
|
24
26
|
)
|
25
27
|
```
|
26
28
|
|
data/docs/OrderBilling.md
CHANGED
@@ -7,6 +7,8 @@
|
|
7
7
|
| **address1** | **String** | Address line 1 | [optional] |
|
8
8
|
| **address2** | **String** | Address line 2 | [optional] |
|
9
9
|
| **cc_emails** | **Array<String>** | CC emails. Multiple allowed, but total length of all emails can not exceed 100 characters. | [optional] |
|
10
|
+
| **cell_phone** | **String** | Cell phone | [optional] |
|
11
|
+
| **cell_phone_e164** | **String** | Cell phone (E164 format) | [optional] |
|
10
12
|
| **city** | **String** | City | [optional] |
|
11
13
|
| **company** | **String** | Company | [optional] |
|
12
14
|
| **country_code** | **String** | ISO-3166 two letter country code | [optional] |
|
@@ -30,6 +32,8 @@ instance = UltracartClient::OrderBilling.new(
|
|
30
32
|
address1: null,
|
31
33
|
address2: null,
|
32
34
|
cc_emails: null,
|
35
|
+
cell_phone: null,
|
36
|
+
cell_phone_e164: null,
|
33
37
|
city: null,
|
34
38
|
company: null,
|
35
39
|
country_code: null,
|
data/docs/OrderMarketing.md
CHANGED
@@ -5,6 +5,7 @@
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **advertising_source** | **String** | Advertising source | [optional] |
|
8
|
+
| **cell_phone_opt_in** | **Boolean** | True if the customer has opted into SMS marketing | [optional] |
|
8
9
|
| **mailing_list** | **Boolean** | True if the customer has opted into mailing list subscription | [optional] |
|
9
10
|
| **referral_code** | **String** | Referral code | [optional] |
|
10
11
|
|
@@ -15,6 +16,7 @@ require 'ultracart_api'
|
|
15
16
|
|
16
17
|
instance = UltracartClient::OrderMarketing.new(
|
17
18
|
advertising_source: null,
|
19
|
+
cell_phone_opt_in: null,
|
18
20
|
mailing_list: null,
|
19
21
|
referral_code: null
|
20
22
|
)
|
data/docs/StorefrontApi.md
CHANGED
@@ -105,7 +105,7 @@ All URIs are relative to *https://secure.ultracart.com/rest/v2*
|
|
105
105
|
| [**get_screen_recordings_by_query**](StorefrontApi.md#get_screen_recordings_by_query) | **POST** /storefront/{storefront_oid}/screen_recordings/query | Query screen recordings |
|
106
106
|
| [**get_screen_recordings_by_segment**](StorefrontApi.md#get_screen_recordings_by_segment) | **POST** /storefront/{storefront_oid}/screen_recordings/segments/{screen_recording_segment_oid}/query | Get screen recordings by segment |
|
107
107
|
| [**get_store_front_pricing_tiers**](StorefrontApi.md#get_store_front_pricing_tiers) | **GET** /storefront/pricing_tiers | Retrieve pricing tiers |
|
108
|
-
| [**get_store_fronts**](StorefrontApi.md#get_store_fronts) | **GET** /storefront
|
108
|
+
| [**get_store_fronts**](StorefrontApi.md#get_store_fronts) | **GET** /storefront | Get storefronts (internal use only for security reasons) |
|
109
109
|
| [**get_thumbnail_parameters**](StorefrontApi.md#get_thumbnail_parameters) | **POST** /storefront/thumbnailParameters | Get thumbnail parameters |
|
110
110
|
| [**get_transaction_email**](StorefrontApi.md#get_transaction_email) | **GET** /storefront/{storefront_oid}/transaction_email/list/{email_id} | Gets a transaction email object |
|
111
111
|
| [**get_transaction_email_list**](StorefrontApi.md#get_transaction_email_list) | **GET** /storefront/{storefront_oid}/transaction_email/list | Gets a list of transaction email names |
|
@@ -6910,7 +6910,7 @@ module UltracartClient
|
|
6910
6910
|
@api_client.config.logger.debug 'Calling API: StorefrontApi.get_store_fronts ...'
|
6911
6911
|
end
|
6912
6912
|
# resource path
|
6913
|
-
local_var_path = '/storefront
|
6913
|
+
local_var_path = '/storefront'
|
6914
6914
|
|
6915
6915
|
# query parameters
|
6916
6916
|
query_params = opts[:query_params] || {}
|
@@ -18,6 +18,9 @@ module UltracartClient
|
|
18
18
|
# The advertising source the customer indicated
|
19
19
|
attr_accessor :advertising_source
|
20
20
|
|
21
|
+
# True if the customer agrees to receiving marketing SMS messages
|
22
|
+
attr_accessor :cell_phone_opt_in
|
23
|
+
|
21
24
|
# True if the customer agrees to receiving marketing emails
|
22
25
|
attr_accessor :mailing_list_opt_in
|
23
26
|
|
@@ -25,6 +28,7 @@ module UltracartClient
|
|
25
28
|
def self.attribute_map
|
26
29
|
{
|
27
30
|
:'advertising_source' => :'advertising_source',
|
31
|
+
:'cell_phone_opt_in' => :'cell_phone_opt_in',
|
28
32
|
:'mailing_list_opt_in' => :'mailing_list_opt_in'
|
29
33
|
}
|
30
34
|
end
|
@@ -38,6 +42,7 @@ module UltracartClient
|
|
38
42
|
def self.openapi_types
|
39
43
|
{
|
40
44
|
:'advertising_source' => :'String',
|
45
|
+
:'cell_phone_opt_in' => :'Boolean',
|
41
46
|
:'mailing_list_opt_in' => :'Boolean'
|
42
47
|
}
|
43
48
|
end
|
@@ -67,6 +72,10 @@ module UltracartClient
|
|
67
72
|
self.advertising_source = attributes[:'advertising_source']
|
68
73
|
end
|
69
74
|
|
75
|
+
if attributes.key?(:'cell_phone_opt_in')
|
76
|
+
self.cell_phone_opt_in = attributes[:'cell_phone_opt_in']
|
77
|
+
end
|
78
|
+
|
70
79
|
if attributes.key?(:'mailing_list_opt_in')
|
71
80
|
self.mailing_list_opt_in = attributes[:'mailing_list_opt_in']
|
72
81
|
end
|
@@ -91,6 +100,7 @@ module UltracartClient
|
|
91
100
|
return true if self.equal?(o)
|
92
101
|
self.class == o.class &&
|
93
102
|
advertising_source == o.advertising_source &&
|
103
|
+
cell_phone_opt_in == o.cell_phone_opt_in &&
|
94
104
|
mailing_list_opt_in == o.mailing_list_opt_in
|
95
105
|
end
|
96
106
|
|
@@ -103,7 +113,7 @@ module UltracartClient
|
|
103
113
|
# Calculates hash code according to all attributes.
|
104
114
|
# @return [Integer] Hash code
|
105
115
|
def hash
|
106
|
-
[advertising_source, mailing_list_opt_in].hash
|
116
|
+
[advertising_source, cell_phone_opt_in, mailing_list_opt_in].hash
|
107
117
|
end
|
108
118
|
|
109
119
|
# Builds the object from hash
|
@@ -30,6 +30,8 @@ module UltracartClient
|
|
30
30
|
# Left conversation date/time
|
31
31
|
attr_accessor :left_dts
|
32
32
|
|
33
|
+
attr_accessor :profile_image_url
|
34
|
+
|
33
35
|
attr_accessor :status
|
34
36
|
|
35
37
|
attr_accessor :unread_messages
|
@@ -43,6 +45,7 @@ module UltracartClient
|
|
43
45
|
:'joined_dts' => :'joined_dts',
|
44
46
|
:'last_message_dts' => :'last_message_dts',
|
45
47
|
:'left_dts' => :'left_dts',
|
48
|
+
:'profile_image_url' => :'profile_image_url',
|
46
49
|
:'status' => :'status',
|
47
50
|
:'unread_messages' => :'unread_messages'
|
48
51
|
}
|
@@ -62,6 +65,7 @@ module UltracartClient
|
|
62
65
|
:'joined_dts' => :'String',
|
63
66
|
:'last_message_dts' => :'String',
|
64
67
|
:'left_dts' => :'String',
|
68
|
+
:'profile_image_url' => :'String',
|
65
69
|
:'status' => :'String',
|
66
70
|
:'unread_messages' => :'Integer'
|
67
71
|
}
|
@@ -112,6 +116,10 @@ module UltracartClient
|
|
112
116
|
self.left_dts = attributes[:'left_dts']
|
113
117
|
end
|
114
118
|
|
119
|
+
if attributes.key?(:'profile_image_url')
|
120
|
+
self.profile_image_url = attributes[:'profile_image_url']
|
121
|
+
end
|
122
|
+
|
115
123
|
if attributes.key?(:'status')
|
116
124
|
self.status = attributes[:'status']
|
117
125
|
end
|
@@ -145,6 +153,7 @@ module UltracartClient
|
|
145
153
|
joined_dts == o.joined_dts &&
|
146
154
|
last_message_dts == o.last_message_dts &&
|
147
155
|
left_dts == o.left_dts &&
|
156
|
+
profile_image_url == o.profile_image_url &&
|
148
157
|
status == o.status &&
|
149
158
|
unread_messages == o.unread_messages
|
150
159
|
end
|
@@ -158,7 +167,7 @@ module UltracartClient
|
|
158
167
|
# Calculates hash code according to all attributes.
|
159
168
|
# @return [Integer] Hash code
|
160
169
|
def hash
|
161
|
-
[conversation_participant_arn, conversation_participant_name, conversation_participant_uuid, joined_dts, last_message_dts, left_dts, status, unread_messages].hash
|
170
|
+
[conversation_participant_arn, conversation_participant_name, conversation_participant_uuid, joined_dts, last_message_dts, left_dts, profile_image_url, status, unread_messages].hash
|
162
171
|
end
|
163
172
|
|
164
173
|
# Builds the object from hash
|
@@ -15,6 +15,7 @@ require 'time'
|
|
15
15
|
|
16
16
|
module UltracartClient
|
17
17
|
class ConversationWebchatQueueStatusAgent
|
18
|
+
# Status of the agent
|
18
19
|
attr_accessor :agent_status
|
19
20
|
|
20
21
|
attr_accessor :conversation_participant_arn
|
@@ -26,6 +27,31 @@ module UltracartClient
|
|
26
27
|
|
27
28
|
attr_accessor :next_round_robin
|
28
29
|
|
30
|
+
# Profile image URL
|
31
|
+
attr_accessor :profile_image_url
|
32
|
+
|
33
|
+
class EnumAttributeValidator
|
34
|
+
attr_reader :datatype
|
35
|
+
attr_reader :allowable_values
|
36
|
+
|
37
|
+
def initialize(datatype, allowable_values)
|
38
|
+
@allowable_values = allowable_values.map do |value|
|
39
|
+
case datatype.to_s
|
40
|
+
when /Integer/i
|
41
|
+
value.to_i
|
42
|
+
when /Float/i
|
43
|
+
value.to_f
|
44
|
+
else
|
45
|
+
value
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
def valid?(value)
|
51
|
+
!value || allowable_values.include?(value)
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
29
55
|
# Attribute mapping from ruby-style variable name to JSON key.
|
30
56
|
def self.attribute_map
|
31
57
|
{
|
@@ -33,7 +59,8 @@ module UltracartClient
|
|
33
59
|
:'conversation_participant_arn' => :'conversation_participant_arn',
|
34
60
|
:'conversation_participant_name' => :'conversation_participant_name',
|
35
61
|
:'last_chat_dts' => :'last_chat_dts',
|
36
|
-
:'next_round_robin' => :'next_round_robin'
|
62
|
+
:'next_round_robin' => :'next_round_robin',
|
63
|
+
:'profile_image_url' => :'profile_image_url'
|
37
64
|
}
|
38
65
|
end
|
39
66
|
|
@@ -49,7 +76,8 @@ module UltracartClient
|
|
49
76
|
:'conversation_participant_arn' => :'String',
|
50
77
|
:'conversation_participant_name' => :'String',
|
51
78
|
:'last_chat_dts' => :'String',
|
52
|
-
:'next_round_robin' => :'Boolean'
|
79
|
+
:'next_round_robin' => :'Boolean',
|
80
|
+
:'profile_image_url' => :'String'
|
53
81
|
}
|
54
82
|
end
|
55
83
|
|
@@ -93,6 +121,10 @@ module UltracartClient
|
|
93
121
|
if attributes.key?(:'next_round_robin')
|
94
122
|
self.next_round_robin = attributes[:'next_round_robin']
|
95
123
|
end
|
124
|
+
|
125
|
+
if attributes.key?(:'profile_image_url')
|
126
|
+
self.profile_image_url = attributes[:'profile_image_url']
|
127
|
+
end
|
96
128
|
end
|
97
129
|
|
98
130
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -105,9 +137,21 @@ module UltracartClient
|
|
105
137
|
# Check to see if the all the properties in the model are valid
|
106
138
|
# @return true if the model is valid
|
107
139
|
def valid?
|
140
|
+
agent_status_validator = EnumAttributeValidator.new('String', ["available", "busy", "unavailable"])
|
141
|
+
return false unless agent_status_validator.valid?(@agent_status)
|
108
142
|
true
|
109
143
|
end
|
110
144
|
|
145
|
+
# Custom attribute writer method checking allowed values (enum).
|
146
|
+
# @param [Object] agent_status Object to be assigned
|
147
|
+
def agent_status=(agent_status)
|
148
|
+
validator = EnumAttributeValidator.new('String', ["available", "busy", "unavailable"])
|
149
|
+
unless validator.valid?(agent_status)
|
150
|
+
fail ArgumentError, "invalid value for \"agent_status\", must be one of #{validator.allowable_values}."
|
151
|
+
end
|
152
|
+
@agent_status = agent_status
|
153
|
+
end
|
154
|
+
|
111
155
|
# Checks equality by comparing each attribute.
|
112
156
|
# @param [Object] Object to be compared
|
113
157
|
def ==(o)
|
@@ -117,7 +161,8 @@ module UltracartClient
|
|
117
161
|
conversation_participant_arn == o.conversation_participant_arn &&
|
118
162
|
conversation_participant_name == o.conversation_participant_name &&
|
119
163
|
last_chat_dts == o.last_chat_dts &&
|
120
|
-
next_round_robin == o.next_round_robin
|
164
|
+
next_round_robin == o.next_round_robin &&
|
165
|
+
profile_image_url == o.profile_image_url
|
121
166
|
end
|
122
167
|
|
123
168
|
# @see the `==` method
|
@@ -129,7 +174,7 @@ module UltracartClient
|
|
129
174
|
# Calculates hash code according to all attributes.
|
130
175
|
# @return [Integer] Hash code
|
131
176
|
def hash
|
132
|
-
[agent_status, conversation_participant_arn, conversation_participant_name, last_chat_dts, next_round_robin].hash
|
177
|
+
[agent_status, conversation_participant_arn, conversation_participant_name, last_chat_dts, next_round_robin, profile_image_url].hash
|
133
178
|
end
|
134
179
|
|
135
180
|
# Builds the object from hash
|
@@ -24,6 +24,12 @@ module UltracartClient
|
|
24
24
|
# CC emails. Multiple allowed, but total length of all emails can not exceed 100 characters.
|
25
25
|
attr_accessor :cc_emails
|
26
26
|
|
27
|
+
# Cell phone
|
28
|
+
attr_accessor :cell_phone
|
29
|
+
|
30
|
+
# Cell phone (E164 format)
|
31
|
+
attr_accessor :cell_phone_e164
|
32
|
+
|
27
33
|
# City
|
28
34
|
attr_accessor :city
|
29
35
|
|
@@ -69,6 +75,8 @@ module UltracartClient
|
|
69
75
|
:'address1' => :'address1',
|
70
76
|
:'address2' => :'address2',
|
71
77
|
:'cc_emails' => :'cc_emails',
|
78
|
+
:'cell_phone' => :'cell_phone',
|
79
|
+
:'cell_phone_e164' => :'cell_phone_e164',
|
72
80
|
:'city' => :'city',
|
73
81
|
:'company' => :'company',
|
74
82
|
:'country_code' => :'country_code',
|
@@ -96,6 +104,8 @@ module UltracartClient
|
|
96
104
|
:'address1' => :'String',
|
97
105
|
:'address2' => :'String',
|
98
106
|
:'cc_emails' => :'Array<String>',
|
107
|
+
:'cell_phone' => :'String',
|
108
|
+
:'cell_phone_e164' => :'String',
|
99
109
|
:'city' => :'String',
|
100
110
|
:'company' => :'String',
|
101
111
|
:'country_code' => :'String',
|
@@ -147,6 +157,14 @@ module UltracartClient
|
|
147
157
|
end
|
148
158
|
end
|
149
159
|
|
160
|
+
if attributes.key?(:'cell_phone')
|
161
|
+
self.cell_phone = attributes[:'cell_phone']
|
162
|
+
end
|
163
|
+
|
164
|
+
if attributes.key?(:'cell_phone_e164')
|
165
|
+
self.cell_phone_e164 = attributes[:'cell_phone_e164']
|
166
|
+
end
|
167
|
+
|
150
168
|
if attributes.key?(:'city')
|
151
169
|
self.city = attributes[:'city']
|
152
170
|
end
|
@@ -212,6 +230,14 @@ module UltracartClient
|
|
212
230
|
invalid_properties.push('invalid value for "address2", the character length must be smaller than or equal to 50.')
|
213
231
|
end
|
214
232
|
|
233
|
+
if !@cell_phone.nil? && @cell_phone.to_s.length > 25
|
234
|
+
invalid_properties.push('invalid value for "cell_phone", the character length must be smaller than or equal to 25.')
|
235
|
+
end
|
236
|
+
|
237
|
+
if !@cell_phone_e164.nil? && @cell_phone_e164.to_s.length > 25
|
238
|
+
invalid_properties.push('invalid value for "cell_phone_e164", the character length must be smaller than or equal to 25.')
|
239
|
+
end
|
240
|
+
|
215
241
|
if !@city.nil? && @city.to_s.length > 32
|
216
242
|
invalid_properties.push('invalid value for "city", the character length must be smaller than or equal to 32.')
|
217
243
|
end
|
@@ -272,6 +298,8 @@ module UltracartClient
|
|
272
298
|
def valid?
|
273
299
|
return false if !@address1.nil? && @address1.to_s.length > 50
|
274
300
|
return false if !@address2.nil? && @address2.to_s.length > 50
|
301
|
+
return false if !@cell_phone.nil? && @cell_phone.to_s.length > 25
|
302
|
+
return false if !@cell_phone_e164.nil? && @cell_phone_e164.to_s.length > 25
|
275
303
|
return false if !@city.nil? && @city.to_s.length > 32
|
276
304
|
return false if !@company.nil? && @company.to_s.length > 50
|
277
305
|
return false if !@country_code.nil? && @country_code.to_s.length > 2
|
@@ -308,6 +336,26 @@ module UltracartClient
|
|
308
336
|
@address2 = address2
|
309
337
|
end
|
310
338
|
|
339
|
+
# Custom attribute writer method with validation
|
340
|
+
# @param [Object] cell_phone Value to be assigned
|
341
|
+
def cell_phone=(cell_phone)
|
342
|
+
if !cell_phone.nil? && cell_phone.to_s.length > 25
|
343
|
+
fail ArgumentError, 'invalid value for "cell_phone", the character length must be smaller than or equal to 25.'
|
344
|
+
end
|
345
|
+
|
346
|
+
@cell_phone = cell_phone
|
347
|
+
end
|
348
|
+
|
349
|
+
# Custom attribute writer method with validation
|
350
|
+
# @param [Object] cell_phone_e164 Value to be assigned
|
351
|
+
def cell_phone_e164=(cell_phone_e164)
|
352
|
+
if !cell_phone_e164.nil? && cell_phone_e164.to_s.length > 25
|
353
|
+
fail ArgumentError, 'invalid value for "cell_phone_e164", the character length must be smaller than or equal to 25.'
|
354
|
+
end
|
355
|
+
|
356
|
+
@cell_phone_e164 = cell_phone_e164
|
357
|
+
end
|
358
|
+
|
311
359
|
# Custom attribute writer method with validation
|
312
360
|
# @param [Object] city Value to be assigned
|
313
361
|
def city=(city)
|
@@ -446,6 +494,8 @@ module UltracartClient
|
|
446
494
|
address1 == o.address1 &&
|
447
495
|
address2 == o.address2 &&
|
448
496
|
cc_emails == o.cc_emails &&
|
497
|
+
cell_phone == o.cell_phone &&
|
498
|
+
cell_phone_e164 == o.cell_phone_e164 &&
|
449
499
|
city == o.city &&
|
450
500
|
company == o.company &&
|
451
501
|
country_code == o.country_code &&
|
@@ -470,7 +520,7 @@ module UltracartClient
|
|
470
520
|
# Calculates hash code according to all attributes.
|
471
521
|
# @return [Integer] Hash code
|
472
522
|
def hash
|
473
|
-
[address1, address2, cc_emails, city, company, country_code, day_phone, day_phone_e164, email, evening_phone, evening_phone_e164, first_name, last_name, postal_code, state_region, title].hash
|
523
|
+
[address1, address2, cc_emails, cell_phone, cell_phone_e164, city, company, country_code, day_phone, day_phone_e164, email, evening_phone, evening_phone_e164, first_name, last_name, postal_code, state_region, title].hash
|
474
524
|
end
|
475
525
|
|
476
526
|
# Builds the object from hash
|
@@ -18,6 +18,9 @@ module UltracartClient
|
|
18
18
|
# Advertising source
|
19
19
|
attr_accessor :advertising_source
|
20
20
|
|
21
|
+
# True if the customer has opted into SMS marketing
|
22
|
+
attr_accessor :cell_phone_opt_in
|
23
|
+
|
21
24
|
# True if the customer has opted into mailing list subscription
|
22
25
|
attr_accessor :mailing_list
|
23
26
|
|
@@ -28,6 +31,7 @@ module UltracartClient
|
|
28
31
|
def self.attribute_map
|
29
32
|
{
|
30
33
|
:'advertising_source' => :'advertising_source',
|
34
|
+
:'cell_phone_opt_in' => :'cell_phone_opt_in',
|
31
35
|
:'mailing_list' => :'mailing_list',
|
32
36
|
:'referral_code' => :'referral_code'
|
33
37
|
}
|
@@ -42,6 +46,7 @@ module UltracartClient
|
|
42
46
|
def self.openapi_types
|
43
47
|
{
|
44
48
|
:'advertising_source' => :'String',
|
49
|
+
:'cell_phone_opt_in' => :'Boolean',
|
45
50
|
:'mailing_list' => :'Boolean',
|
46
51
|
:'referral_code' => :'String'
|
47
52
|
}
|
@@ -72,6 +77,10 @@ module UltracartClient
|
|
72
77
|
self.advertising_source = attributes[:'advertising_source']
|
73
78
|
end
|
74
79
|
|
80
|
+
if attributes.key?(:'cell_phone_opt_in')
|
81
|
+
self.cell_phone_opt_in = attributes[:'cell_phone_opt_in']
|
82
|
+
end
|
83
|
+
|
75
84
|
if attributes.key?(:'mailing_list')
|
76
85
|
self.mailing_list = attributes[:'mailing_list']
|
77
86
|
end
|
@@ -130,6 +139,7 @@ module UltracartClient
|
|
130
139
|
return true if self.equal?(o)
|
131
140
|
self.class == o.class &&
|
132
141
|
advertising_source == o.advertising_source &&
|
142
|
+
cell_phone_opt_in == o.cell_phone_opt_in &&
|
133
143
|
mailing_list == o.mailing_list &&
|
134
144
|
referral_code == o.referral_code
|
135
145
|
end
|
@@ -143,7 +153,7 @@ module UltracartClient
|
|
143
153
|
# Calculates hash code according to all attributes.
|
144
154
|
# @return [Integer] Hash code
|
145
155
|
def hash
|
146
|
-
[advertising_source, mailing_list, referral_code].hash
|
156
|
+
[advertising_source, cell_phone_opt_in, mailing_list, referral_code].hash
|
147
157
|
end
|
148
158
|
|
149
159
|
# 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.56.rc
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- UltraCart
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-08-
|
11
|
+
date: 2022-08-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|