ultracart_api 3.10.38 → 3.10.39

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c9e126c9883f349713b1fd0f02b4d5567039b6d2f0f97fc4f851d41efb67fee9
4
- data.tar.gz: 37ef0d0c9841e8370a221d8fced1ff3be1a3aac83c2c96a3851f46bf9d322dc2
3
+ metadata.gz: bdc9603104f9d0110ce678327583e9e921e0da7d6f3c399c3e6a894998ca8069
4
+ data.tar.gz: ad4bd4dc95c0363bc659120c61e38ad2577892bd74e20d972f468da2d9cf718b
5
5
  SHA512:
6
- metadata.gz: f03922d07db66d388c2ab34e5957fa67e793163e84f3795ce4fa97d29ce5a987322911cf0b8e2b4333d66d8f75db3da1188896aa853a5a963995cf965d5be504
7
- data.tar.gz: 984c0a4995aeb37f338fd6593d404454522a657ff4db1838d15b7f13bfbb997bc6520e60b119d124455bb1b95c60936f1133239f72a0133662ea4f8c4e95ff1c
6
+ metadata.gz: b4f5884841cccb5e67d82b870c61420d4f0aef4a08b42f244c7a7139d08e3edd997b74f2aa34a0ab2a33199e3d1d18d0f4bf7799910b3cfe417390618d487ebb
7
+ data.tar.gz: 7e579077bc6b4e1889c07ce99eeefc3348e90aa7a23af085cefcd350a9eef3e63ac74ba43bb3075569e56fa123e92903ac77c44a399c2a53b0e3a7562bf9e807
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.10.38
10
+ - Package version: 3.10.39
11
11
  - Build package: io.swagger.codegen.languages.RubyClientCodegen
12
12
  For more information, please visit [http://www.ultracart.com](http://www.ultracart.com)
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.10.38.gem
27
+ gem install ./ultracart_api-3.10.39.gem
28
28
  ```
29
- (for development, run `gem install --dev ./ultracart_api-3.10.38.gem` to install the development dependencies)
29
+ (for development, run `gem install --dev ./ultracart_api-3.10.39.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.10.38'
35
+ gem 'ultracart_api', '~> 3.10.39'
36
36
 
37
37
  ### Install from Git
38
38
 
@@ -330,7 +330,7 @@ Class | Method | HTTP request | Description
330
330
  *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
331
331
  *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
332
332
  *UltracartClient::StorefrontApi* | [**get_store_front_pricing_tiers**](docs/StorefrontApi.md#get_store_front_pricing_tiers) | **GET** /storefront/pricing_tiers | Retrieve pricing tiers
333
- *UltracartClient::StorefrontApi* | [**get_store_fronts**](docs/StorefrontApi.md#get_store_fronts) | **GET** /storefront/ | Get storefronts (internal use only for security reasons)
333
+ *UltracartClient::StorefrontApi* | [**get_store_fronts**](docs/StorefrontApi.md#get_store_fronts) | **GET** /storefront | Get storefronts (internal use only for security reasons)
334
334
  *UltracartClient::StorefrontApi* | [**get_thumbnail_parameters**](docs/StorefrontApi.md#get_thumbnail_parameters) | **POST** /storefront/thumbnailParameters | Get thumbnail parameters
335
335
  *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
336
336
  *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
@@ -1178,6 +1178,7 @@ Not every change is committed to every SDK.
1178
1178
 
1179
1179
  | Version | Date | Comments |
1180
1180
  | --: | :-: | --- |
1181
+ | 3.10.39 | 08/19/2022 | order api - added cell phone fields for sms |
1181
1182
  | 3.10.38 | 08/12/2022 | internal code to allow merchant login as customer |
1182
1183
  | 3.10.37 | 08/11/2022 | fix entry_dts type on gift certificate ledger |
1183
1184
  | 3.10.36 | 08/10/2022 | conversation event refactoring |
@@ -4,6 +4,7 @@
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
6
  **advertising_source** | **String** | The advertising source the customer indicated | [optional]
7
+ **cell_phone_opt_in** | **BOOLEAN** | True if the customer agrees to receiving marketing SMS messages | [optional]
7
8
  **mailing_list_opt_in** | **BOOLEAN** | True if the customer agrees to receiving marketing emails | [optional]
8
9
 
9
10
 
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
9
9
  **joined_dts** | **String** | Joined conversation date/time | [optional]
10
10
  **last_message_dts** | **String** | Last message date/time | [optional]
11
11
  **left_dts** | **String** | Left conversation date/time | [optional]
12
+ **profile_image_url** | **String** | | [optional]
12
13
  **status** | **String** | | [optional]
13
14
  **unread_messages** | **Integer** | | [optional]
14
15
 
@@ -3,10 +3,11 @@
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
- **agent_status** | **String** | | [optional]
6
+ **agent_status** | **String** | Status of the agent | [optional]
7
7
  **conversation_participant_arn** | **String** | | [optional]
8
8
  **conversation_participant_name** | **String** | | [optional]
9
9
  **last_chat_dts** | **String** | Date/time that this agent took their last chat | [optional]
10
10
  **next_round_robin** | **BOOLEAN** | | [optional]
11
+ **profile_image_url** | **String** | Profile image URL | [optional]
11
12
 
12
13
 
data/docs/OrderBilling.md CHANGED
@@ -6,6 +6,8 @@ Name | Type | Description | Notes
6
6
  **address1** | **String** | Address line 1 | [optional]
7
7
  **address2** | **String** | Address line 2 | [optional]
8
8
  **cc_emails** | **Array<String>** | CC emails. Multiple allowed, but total length of all emails can not exceed 100 characters. | [optional]
9
+ **cell_phone** | **String** | Cell phone | [optional]
10
+ **cell_phone_e164** | **String** | Cell phone (E164 format) | [optional]
9
11
  **city** | **String** | City | [optional]
10
12
  **company** | **String** | Company | [optional]
11
13
  **country_code** | **String** | ISO-3166 two letter country code | [optional]
@@ -4,6 +4,7 @@
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
6
  **advertising_source** | **String** | Advertising source | [optional]
7
+ **cell_phone_opt_in** | **BOOLEAN** | True if the customer has opted into SMS marketing | [optional]
7
8
  **mailing_list** | **BOOLEAN** | True if the customer has opted into mailing list subscription | [optional]
8
9
  **referral_code** | **String** | Referral code | [optional]
9
10
 
@@ -105,7 +105,7 @@ Method | HTTP request | Description
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/ | Get storefronts (internal use only for security reasons)
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
@@ -5914,7 +5914,7 @@ module UltracartClient
5914
5914
  @api_client.config.logger.debug 'Calling API: StorefrontApi.get_store_fronts ...'
5915
5915
  end
5916
5916
  # resource path
5917
- local_var_path = '/storefront/'
5917
+ local_var_path = '/storefront'
5918
5918
 
5919
5919
  # query parameters
5920
5920
  query_params = {}
@@ -17,6 +17,9 @@ module UltracartClient
17
17
  # The advertising source the customer indicated
18
18
  attr_accessor :advertising_source
19
19
 
20
+ # True if the customer agrees to receiving marketing SMS messages
21
+ attr_accessor :cell_phone_opt_in
22
+
20
23
  # True if the customer agrees to receiving marketing emails
21
24
  attr_accessor :mailing_list_opt_in
22
25
 
@@ -24,6 +27,7 @@ module UltracartClient
24
27
  def self.attribute_map
25
28
  {
26
29
  :'advertising_source' => :'advertising_source',
30
+ :'cell_phone_opt_in' => :'cell_phone_opt_in',
27
31
  :'mailing_list_opt_in' => :'mailing_list_opt_in'
28
32
  }
29
33
  end
@@ -32,6 +36,7 @@ module UltracartClient
32
36
  def self.swagger_types
33
37
  {
34
38
  :'advertising_source' => :'String',
39
+ :'cell_phone_opt_in' => :'BOOLEAN',
35
40
  :'mailing_list_opt_in' => :'BOOLEAN'
36
41
  }
37
42
  end
@@ -48,6 +53,10 @@ module UltracartClient
48
53
  self.advertising_source = attributes[:'advertising_source']
49
54
  end
50
55
 
56
+ if attributes.has_key?(:'cell_phone_opt_in')
57
+ self.cell_phone_opt_in = attributes[:'cell_phone_opt_in']
58
+ end
59
+
51
60
  if attributes.has_key?(:'mailing_list_opt_in')
52
61
  self.mailing_list_opt_in = attributes[:'mailing_list_opt_in']
53
62
  end
@@ -72,6 +81,7 @@ module UltracartClient
72
81
  return true if self.equal?(o)
73
82
  self.class == o.class &&
74
83
  advertising_source == o.advertising_source &&
84
+ cell_phone_opt_in == o.cell_phone_opt_in &&
75
85
  mailing_list_opt_in == o.mailing_list_opt_in
76
86
  end
77
87
 
@@ -84,7 +94,7 @@ module UltracartClient
84
94
  # Calculates hash code according to all attributes.
85
95
  # @return [Fixnum] Hash code
86
96
  def hash
87
- [advertising_source, mailing_list_opt_in].hash
97
+ [advertising_source, cell_phone_opt_in, mailing_list_opt_in].hash
88
98
  end
89
99
 
90
100
  # Builds the object from hash
@@ -29,6 +29,8 @@ module UltracartClient
29
29
  # Left conversation date/time
30
30
  attr_accessor :left_dts
31
31
 
32
+ attr_accessor :profile_image_url
33
+
32
34
  attr_accessor :status
33
35
 
34
36
  attr_accessor :unread_messages
@@ -42,6 +44,7 @@ module UltracartClient
42
44
  :'joined_dts' => :'joined_dts',
43
45
  :'last_message_dts' => :'last_message_dts',
44
46
  :'left_dts' => :'left_dts',
47
+ :'profile_image_url' => :'profile_image_url',
45
48
  :'status' => :'status',
46
49
  :'unread_messages' => :'unread_messages'
47
50
  }
@@ -56,6 +59,7 @@ module UltracartClient
56
59
  :'joined_dts' => :'String',
57
60
  :'last_message_dts' => :'String',
58
61
  :'left_dts' => :'String',
62
+ :'profile_image_url' => :'String',
59
63
  :'status' => :'String',
60
64
  :'unread_messages' => :'Integer'
61
65
  }
@@ -93,6 +97,10 @@ module UltracartClient
93
97
  self.left_dts = attributes[:'left_dts']
94
98
  end
95
99
 
100
+ if attributes.has_key?(:'profile_image_url')
101
+ self.profile_image_url = attributes[:'profile_image_url']
102
+ end
103
+
96
104
  if attributes.has_key?(:'status')
97
105
  self.status = attributes[:'status']
98
106
  end
@@ -126,6 +134,7 @@ module UltracartClient
126
134
  joined_dts == o.joined_dts &&
127
135
  last_message_dts == o.last_message_dts &&
128
136
  left_dts == o.left_dts &&
137
+ profile_image_url == o.profile_image_url &&
129
138
  status == o.status &&
130
139
  unread_messages == o.unread_messages
131
140
  end
@@ -139,7 +148,7 @@ module UltracartClient
139
148
  # Calculates hash code according to all attributes.
140
149
  # @return [Fixnum] Hash code
141
150
  def hash
142
- [conversation_participant_arn, conversation_participant_name, conversation_participant_uuid, joined_dts, last_message_dts, left_dts, status, unread_messages].hash
151
+ [conversation_participant_arn, conversation_participant_name, conversation_participant_uuid, joined_dts, last_message_dts, left_dts, profile_image_url, status, unread_messages].hash
143
152
  end
144
153
 
145
154
  # Builds the object from hash
@@ -14,6 +14,7 @@ require 'date'
14
14
 
15
15
  module UltracartClient
16
16
  class ConversationWebchatQueueStatusAgent
17
+ # Status of the agent
17
18
  attr_accessor :agent_status
18
19
 
19
20
  attr_accessor :conversation_participant_arn
@@ -25,6 +26,31 @@ module UltracartClient
25
26
 
26
27
  attr_accessor :next_round_robin
27
28
 
29
+ # Profile image URL
30
+ attr_accessor :profile_image_url
31
+
32
+ class EnumAttributeValidator
33
+ attr_reader :datatype
34
+ attr_reader :allowable_values
35
+
36
+ def initialize(datatype, allowable_values)
37
+ @allowable_values = allowable_values.map do |value|
38
+ case datatype.to_s
39
+ when /Integer/i
40
+ value.to_i
41
+ when /Float/i
42
+ value.to_f
43
+ else
44
+ value
45
+ end
46
+ end
47
+ end
48
+
49
+ def valid?(value)
50
+ !value || allowable_values.include?(value)
51
+ end
52
+ end
53
+
28
54
  # Attribute mapping from ruby-style variable name to JSON key.
29
55
  def self.attribute_map
30
56
  {
@@ -32,7 +58,8 @@ module UltracartClient
32
58
  :'conversation_participant_arn' => :'conversation_participant_arn',
33
59
  :'conversation_participant_name' => :'conversation_participant_name',
34
60
  :'last_chat_dts' => :'last_chat_dts',
35
- :'next_round_robin' => :'next_round_robin'
61
+ :'next_round_robin' => :'next_round_robin',
62
+ :'profile_image_url' => :'profile_image_url'
36
63
  }
37
64
  end
38
65
 
@@ -43,7 +70,8 @@ module UltracartClient
43
70
  :'conversation_participant_arn' => :'String',
44
71
  :'conversation_participant_name' => :'String',
45
72
  :'last_chat_dts' => :'String',
46
- :'next_round_robin' => :'BOOLEAN'
73
+ :'next_round_robin' => :'BOOLEAN',
74
+ :'profile_image_url' => :'String'
47
75
  }
48
76
  end
49
77
 
@@ -74,6 +102,10 @@ module UltracartClient
74
102
  if attributes.has_key?(:'next_round_robin')
75
103
  self.next_round_robin = attributes[:'next_round_robin']
76
104
  end
105
+
106
+ if attributes.has_key?(:'profile_image_url')
107
+ self.profile_image_url = attributes[:'profile_image_url']
108
+ end
77
109
  end
78
110
 
79
111
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -86,9 +118,21 @@ module UltracartClient
86
118
  # Check to see if the all the properties in the model are valid
87
119
  # @return true if the model is valid
88
120
  def valid?
121
+ agent_status_validator = EnumAttributeValidator.new('String', ['available', 'busy', 'unavailable'])
122
+ return false unless agent_status_validator.valid?(@agent_status)
89
123
  true
90
124
  end
91
125
 
126
+ # Custom attribute writer method checking allowed values (enum).
127
+ # @param [Object] agent_status Object to be assigned
128
+ def agent_status=(agent_status)
129
+ validator = EnumAttributeValidator.new('String', ['available', 'busy', 'unavailable'])
130
+ unless validator.valid?(agent_status)
131
+ fail ArgumentError, 'invalid value for "agent_status", must be one of #{validator.allowable_values}.'
132
+ end
133
+ @agent_status = agent_status
134
+ end
135
+
92
136
  # Checks equality by comparing each attribute.
93
137
  # @param [Object] Object to be compared
94
138
  def ==(o)
@@ -98,7 +142,8 @@ module UltracartClient
98
142
  conversation_participant_arn == o.conversation_participant_arn &&
99
143
  conversation_participant_name == o.conversation_participant_name &&
100
144
  last_chat_dts == o.last_chat_dts &&
101
- next_round_robin == o.next_round_robin
145
+ next_round_robin == o.next_round_robin &&
146
+ profile_image_url == o.profile_image_url
102
147
  end
103
148
 
104
149
  # @see the `==` method
@@ -110,7 +155,7 @@ module UltracartClient
110
155
  # Calculates hash code according to all attributes.
111
156
  # @return [Fixnum] Hash code
112
157
  def hash
113
- [agent_status, conversation_participant_arn, conversation_participant_name, last_chat_dts, next_round_robin].hash
158
+ [agent_status, conversation_participant_arn, conversation_participant_name, last_chat_dts, next_round_robin, profile_image_url].hash
114
159
  end
115
160
 
116
161
  # Builds the object from hash
@@ -23,6 +23,12 @@ module UltracartClient
23
23
  # CC emails. Multiple allowed, but total length of all emails can not exceed 100 characters.
24
24
  attr_accessor :cc_emails
25
25
 
26
+ # Cell phone
27
+ attr_accessor :cell_phone
28
+
29
+ # Cell phone (E164 format)
30
+ attr_accessor :cell_phone_e164
31
+
26
32
  # City
27
33
  attr_accessor :city
28
34
 
@@ -68,6 +74,8 @@ module UltracartClient
68
74
  :'address1' => :'address1',
69
75
  :'address2' => :'address2',
70
76
  :'cc_emails' => :'cc_emails',
77
+ :'cell_phone' => :'cell_phone',
78
+ :'cell_phone_e164' => :'cell_phone_e164',
71
79
  :'city' => :'city',
72
80
  :'company' => :'company',
73
81
  :'country_code' => :'country_code',
@@ -90,6 +98,8 @@ module UltracartClient
90
98
  :'address1' => :'String',
91
99
  :'address2' => :'String',
92
100
  :'cc_emails' => :'Array<String>',
101
+ :'cell_phone' => :'String',
102
+ :'cell_phone_e164' => :'String',
93
103
  :'city' => :'String',
94
104
  :'company' => :'String',
95
105
  :'country_code' => :'String',
@@ -128,6 +138,14 @@ module UltracartClient
128
138
  end
129
139
  end
130
140
 
141
+ if attributes.has_key?(:'cell_phone')
142
+ self.cell_phone = attributes[:'cell_phone']
143
+ end
144
+
145
+ if attributes.has_key?(:'cell_phone_e164')
146
+ self.cell_phone_e164 = attributes[:'cell_phone_e164']
147
+ end
148
+
131
149
  if attributes.has_key?(:'city')
132
150
  self.city = attributes[:'city']
133
151
  end
@@ -193,6 +211,14 @@ module UltracartClient
193
211
  invalid_properties.push('invalid value for "address2", the character length must be smaller than or equal to 50.')
194
212
  end
195
213
 
214
+ if !@cell_phone.nil? && @cell_phone.to_s.length > 25
215
+ invalid_properties.push('invalid value for "cell_phone", the character length must be smaller than or equal to 25.')
216
+ end
217
+
218
+ if !@cell_phone_e164.nil? && @cell_phone_e164.to_s.length > 25
219
+ invalid_properties.push('invalid value for "cell_phone_e164", the character length must be smaller than or equal to 25.')
220
+ end
221
+
196
222
  if !@city.nil? && @city.to_s.length > 32
197
223
  invalid_properties.push('invalid value for "city", the character length must be smaller than or equal to 32.')
198
224
  end
@@ -253,6 +279,8 @@ module UltracartClient
253
279
  def valid?
254
280
  return false if !@address1.nil? && @address1.to_s.length > 50
255
281
  return false if !@address2.nil? && @address2.to_s.length > 50
282
+ return false if !@cell_phone.nil? && @cell_phone.to_s.length > 25
283
+ return false if !@cell_phone_e164.nil? && @cell_phone_e164.to_s.length > 25
256
284
  return false if !@city.nil? && @city.to_s.length > 32
257
285
  return false if !@company.nil? && @company.to_s.length > 50
258
286
  return false if !@country_code.nil? && @country_code.to_s.length > 2
@@ -289,6 +317,26 @@ module UltracartClient
289
317
  @address2 = address2
290
318
  end
291
319
 
320
+ # Custom attribute writer method with validation
321
+ # @param [Object] cell_phone Value to be assigned
322
+ def cell_phone=(cell_phone)
323
+ if !cell_phone.nil? && cell_phone.to_s.length > 25
324
+ fail ArgumentError, 'invalid value for "cell_phone", the character length must be smaller than or equal to 25.'
325
+ end
326
+
327
+ @cell_phone = cell_phone
328
+ end
329
+
330
+ # Custom attribute writer method with validation
331
+ # @param [Object] cell_phone_e164 Value to be assigned
332
+ def cell_phone_e164=(cell_phone_e164)
333
+ if !cell_phone_e164.nil? && cell_phone_e164.to_s.length > 25
334
+ fail ArgumentError, 'invalid value for "cell_phone_e164", the character length must be smaller than or equal to 25.'
335
+ end
336
+
337
+ @cell_phone_e164 = cell_phone_e164
338
+ end
339
+
292
340
  # Custom attribute writer method with validation
293
341
  # @param [Object] city Value to be assigned
294
342
  def city=(city)
@@ -427,6 +475,8 @@ module UltracartClient
427
475
  address1 == o.address1 &&
428
476
  address2 == o.address2 &&
429
477
  cc_emails == o.cc_emails &&
478
+ cell_phone == o.cell_phone &&
479
+ cell_phone_e164 == o.cell_phone_e164 &&
430
480
  city == o.city &&
431
481
  company == o.company &&
432
482
  country_code == o.country_code &&
@@ -451,7 +501,7 @@ module UltracartClient
451
501
  # Calculates hash code according to all attributes.
452
502
  # @return [Fixnum] Hash code
453
503
  def hash
454
- [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
504
+ [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
455
505
  end
456
506
 
457
507
  # Builds the object from hash
@@ -17,6 +17,9 @@ module UltracartClient
17
17
  # Advertising source
18
18
  attr_accessor :advertising_source
19
19
 
20
+ # True if the customer has opted into SMS marketing
21
+ attr_accessor :cell_phone_opt_in
22
+
20
23
  # True if the customer has opted into mailing list subscription
21
24
  attr_accessor :mailing_list
22
25
 
@@ -27,6 +30,7 @@ module UltracartClient
27
30
  def self.attribute_map
28
31
  {
29
32
  :'advertising_source' => :'advertising_source',
33
+ :'cell_phone_opt_in' => :'cell_phone_opt_in',
30
34
  :'mailing_list' => :'mailing_list',
31
35
  :'referral_code' => :'referral_code'
32
36
  }
@@ -36,6 +40,7 @@ module UltracartClient
36
40
  def self.swagger_types
37
41
  {
38
42
  :'advertising_source' => :'String',
43
+ :'cell_phone_opt_in' => :'BOOLEAN',
39
44
  :'mailing_list' => :'BOOLEAN',
40
45
  :'referral_code' => :'String'
41
46
  }
@@ -53,6 +58,10 @@ module UltracartClient
53
58
  self.advertising_source = attributes[:'advertising_source']
54
59
  end
55
60
 
61
+ if attributes.has_key?(:'cell_phone_opt_in')
62
+ self.cell_phone_opt_in = attributes[:'cell_phone_opt_in']
63
+ end
64
+
56
65
  if attributes.has_key?(:'mailing_list')
57
66
  self.mailing_list = attributes[:'mailing_list']
58
67
  end
@@ -111,6 +120,7 @@ module UltracartClient
111
120
  return true if self.equal?(o)
112
121
  self.class == o.class &&
113
122
  advertising_source == o.advertising_source &&
123
+ cell_phone_opt_in == o.cell_phone_opt_in &&
114
124
  mailing_list == o.mailing_list &&
115
125
  referral_code == o.referral_code
116
126
  end
@@ -124,7 +134,7 @@ module UltracartClient
124
134
  # Calculates hash code according to all attributes.
125
135
  # @return [Fixnum] Hash code
126
136
  def hash
127
- [advertising_source, mailing_list, referral_code].hash
137
+ [advertising_source, cell_phone_opt_in, mailing_list, referral_code].hash
128
138
  end
129
139
 
130
140
  # 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.10.38'
14
+ VERSION = '3.10.39'
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.10.38
4
+ version: 3.10.39
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-12 00:00:00.000000000 Z
11
+ date: 2022-08-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus