ultracart_api 3.10.18 → 3.10.19

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: f37680929be7f700802faf7c672a24debc1194e6c4541025e158f38a84048fa9
4
- data.tar.gz: 5e83ffd30822f714eda188689478e0e3e32f91e993add0eb7b287cbe6b2c5431
3
+ metadata.gz: 78041697c0613ab2caadfefb31ad7a5ed74ef26b644376b2c07d3d737ba32308
4
+ data.tar.gz: 87082c912aed8bece9e24491980059f8b6485d33b11ec69fdf923619c7313899
5
5
  SHA512:
6
- metadata.gz: 8a7ad9001ea6e6bed8ffae58a7ea2ad07d7b4b479f8bb2e7c8ce78209c00d94135a5f0886221126ece44383e6626cdcfcbd8051207b8798ebecf42fdff6ae311
7
- data.tar.gz: 55b3decb2da6580d62fccb1c064a98f0910b50a4b4ed3e88bf61a8b558eade9b5a5977ee6f198a42d64887f6dd8198ee6d20e7dba9eb8a17045e3432d890cf30
6
+ metadata.gz: 2cdfd1a35882a63c43116c799cd4a2e2329dd13d4292796d67e85467fbfa027e245e589dd51a8ee991e9e170f02c66ed413e0e30a19827bf802f9192ca522561
7
+ data.tar.gz: 5ae21465d11beda5648a6b3363b671d671303ab5802d6f2709eee2411e4b2a42b67a1640ca20633daca5484e61207c8592e2c6a3325ff966b0fe9cfd209582ba
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.18
10
+ - Package version: 3.10.19
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.18.gem
27
+ gem install ./ultracart_api-3.10.19.gem
28
28
  ```
29
- (for development, run `gem install --dev ./ultracart_api-3.10.18.gem` to install the development dependencies)
29
+ (for development, run `gem install --dev ./ultracart_api-3.10.19.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.18'
35
+ gem 'ultracart_api', '~> 3.10.19'
36
36
 
37
37
  ### Install from Git
38
38
 
@@ -157,6 +157,7 @@ Class | Method | HTTP request | Description
157
157
  *UltracartClient::CustomerApi* | [**get_customers_for_data_tables**](docs/CustomerApi.md#get_customers_for_data_tables) | **POST** /customer/customers/dataTables | Retrieve customers for DataTables plugin
158
158
  *UltracartClient::CustomerApi* | [**get_email_verification_token**](docs/CustomerApi.md#get_email_verification_token) | **POST** /customer/customers/email_verify/get_token | Create a token that can be used to verify a customer email address
159
159
  *UltracartClient::CustomerApi* | [**insert_customer**](docs/CustomerApi.md#insert_customer) | **POST** /customer/customers | Insert a customer
160
+ *UltracartClient::CustomerApi* | [**merge_customer**](docs/CustomerApi.md#merge_customer) | **PUT** /customer/customers/{customer_profile_oid}/merge | Merge customer into this customer
160
161
  *UltracartClient::CustomerApi* | [**search_customer_profile_values**](docs/CustomerApi.md#search_customer_profile_values) | **POST** /customer/search | Searches for all matching values (using POST)
161
162
  *UltracartClient::CustomerApi* | [**update_customer**](docs/CustomerApi.md#update_customer) | **PUT** /customer/customers/{customer_profile_oid} | Update a customer
162
163
  *UltracartClient::CustomerApi* | [**update_customer_email_lists**](docs/CustomerApi.md#update_customer_email_lists) | **POST** /customer/customers/{customer_profile_oid}/email_lists | Update email list subscriptions for a customer
@@ -625,6 +626,7 @@ Class | Method | HTTP request | Description
625
626
  - [UltracartClient::CustomerLoyalty](docs/CustomerLoyalty.md)
626
627
  - [UltracartClient::CustomerLoyaltyLedger](docs/CustomerLoyaltyLedger.md)
627
628
  - [UltracartClient::CustomerLoyaltyRedemption](docs/CustomerLoyaltyRedemption.md)
629
+ - [UltracartClient::CustomerMergeRequest](docs/CustomerMergeRequest.md)
628
630
  - [UltracartClient::CustomerOrdersSummary](docs/CustomerOrdersSummary.md)
629
631
  - [UltracartClient::CustomerPricingTier](docs/CustomerPricingTier.md)
630
632
  - [UltracartClient::CustomerPrivacy](docs/CustomerPrivacy.md)
@@ -1132,6 +1134,7 @@ Not every change is committed to every SDK.
1132
1134
 
1133
1135
  | Version | Date | Comments |
1134
1136
  | --: | :-: | --- |
1137
+ | 3.10.19 | 07/11/2022 | Customer API - mergeCustomer method |
1135
1138
  | 3.10.18 | 06/23/2022 | removed unneeded consumes declarations on several api calls (yaml fix) |
1136
1139
  | 3.10.17 | 06/23/2022 | automation test |
1137
1140
  | 3.10.16 | 06/23/2022 | automation test |
@@ -4,8 +4,12 @@
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
6
  **activities** | [**Array<Activity>**](Activity.md) | | [optional]
7
+ **global_unsubscribed** | **BOOLEAN** | | [optional]
8
+ **global_unsubscribed_dts** | **String** | | [optional]
7
9
  **memberships** | [**Array<ListSegmentMembership>**](ListSegmentMembership.md) | | [optional]
8
10
  **metrics** | [**Array<Metric>**](Metric.md) | | [optional]
9
11
  **properties_list** | [**Array<Property>**](Property.md) | | [optional]
12
+ **spam_complaint** | **BOOLEAN** | | [optional]
13
+ **spam_complaint_dts** | **String** | | [optional]
10
14
 
11
15
 
data/docs/CustomerApi.md CHANGED
@@ -17,6 +17,7 @@ Method | HTTP request | Description
17
17
  [**get_customers_for_data_tables**](CustomerApi.md#get_customers_for_data_tables) | **POST** /customer/customers/dataTables | Retrieve customers for DataTables plugin
18
18
  [**get_email_verification_token**](CustomerApi.md#get_email_verification_token) | **POST** /customer/customers/email_verify/get_token | Create a token that can be used to verify a customer email address
19
19
  [**insert_customer**](CustomerApi.md#insert_customer) | **POST** /customer/customers | Insert a customer
20
+ [**merge_customer**](CustomerApi.md#merge_customer) | **PUT** /customer/customers/{customer_profile_oid}/merge | Merge customer into this customer
20
21
  [**search_customer_profile_values**](CustomerApi.md#search_customer_profile_values) | **POST** /customer/search | Searches for all matching values (using POST)
21
22
  [**update_customer**](CustomerApi.md#update_customer) | **PUT** /customer/customers/{customer_profile_oid} | Update a customer
22
23
  [**update_customer_email_lists**](CustomerApi.md#update_customer_email_lists) | **POST** /customer/customers/{customer_profile_oid}/email_lists | Update email list subscriptions for a customer
@@ -756,6 +757,62 @@ Name | Type | Description | Notes
756
757
 
757
758
 
758
759
 
760
+ # **merge_customer**
761
+ > merge_customer(customer, customer_profile_oid, opts)
762
+
763
+ Merge customer into this customer
764
+
765
+ Merge customer into this customer.
766
+
767
+ ### Example
768
+ ```ruby
769
+ # load the gem
770
+ require 'ultracart_api'
771
+
772
+ # Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
773
+ simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
774
+ api_instance = UltracartClient::CustomerApi.new_using_api_key(simple_key, false, false)
775
+
776
+
777
+ customer = UltracartClient::CustomerMergeRequest.new # CustomerMergeRequest | Customer to merge into this profile.
778
+
779
+ customer_profile_oid = 56 # Integer | The customer_profile_oid to update.
780
+
781
+ opts = {
782
+ _expand: '_expand_example' # String | The object expansion to perform on the result. See documentation for examples
783
+ }
784
+
785
+ begin
786
+ #Merge customer into this customer
787
+ api_instance.merge_customer(customer, customer_profile_oid, opts)
788
+ rescue UltracartClient::ApiError => e
789
+ puts "Exception when calling CustomerApi->merge_customer: #{e}"
790
+ end
791
+ ```
792
+
793
+ ### Parameters
794
+
795
+ Name | Type | Description | Notes
796
+ ------------- | ------------- | ------------- | -------------
797
+ **customer** | [**CustomerMergeRequest**](CustomerMergeRequest.md)| Customer to merge into this profile. |
798
+ **customer_profile_oid** | **Integer**| The customer_profile_oid to update. |
799
+ **_expand** | **String**| The object expansion to perform on the result. See documentation for examples | [optional]
800
+
801
+ ### Return type
802
+
803
+ nil (empty response body)
804
+
805
+ ### Authorization
806
+
807
+ [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
808
+
809
+ ### HTTP request headers
810
+
811
+ - **Content-Type**: application/json; charset=UTF-8
812
+ - **Accept**: application/json
813
+
814
+
815
+
759
816
  # **search_customer_profile_values**
760
817
  > LookupResponse search_customer_profile_values(lookup_request)
761
818
 
@@ -0,0 +1,9 @@
1
+ # UltracartClient::CustomerMergeRequest
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **customer_profile_oid** | **Integer** | Customer profile oid to merge | [optional]
7
+ **email** | **String** | Email of the customer profile to merge | [optional]
8
+
9
+
@@ -857,6 +857,69 @@ module UltracartClient
857
857
  end
858
858
  return data, status_code, headers
859
859
  end
860
+ # Merge customer into this customer
861
+ # Merge customer into this customer.
862
+ # @param customer Customer to merge into this profile.
863
+ # @param customer_profile_oid The customer_profile_oid to update.
864
+ # @param [Hash] opts the optional parameters
865
+ # @option opts [String] :_expand The object expansion to perform on the result. See documentation for examples
866
+ # @return [nil]
867
+ def merge_customer(customer, customer_profile_oid, opts = {})
868
+ merge_customer_with_http_info(customer, customer_profile_oid, opts)
869
+ nil
870
+ end
871
+
872
+ # Merge customer into this customer
873
+ # Merge customer into this customer.
874
+ # @param customer Customer to merge into this profile.
875
+ # @param customer_profile_oid The customer_profile_oid to update.
876
+ # @param [Hash] opts the optional parameters
877
+ # @option opts [String] :_expand The object expansion to perform on the result. See documentation for examples
878
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
879
+ def merge_customer_with_http_info(customer, customer_profile_oid, opts = {})
880
+ if @api_client.config.debugging
881
+ @api_client.config.logger.debug 'Calling API: CustomerApi.merge_customer ...'
882
+ end
883
+ # verify the required parameter 'customer' is set
884
+ if @api_client.config.client_side_validation && customer.nil?
885
+ fail ArgumentError, "Missing the required parameter 'customer' when calling CustomerApi.merge_customer"
886
+ end
887
+ # verify the required parameter 'customer_profile_oid' is set
888
+ if @api_client.config.client_side_validation && customer_profile_oid.nil?
889
+ fail ArgumentError, "Missing the required parameter 'customer_profile_oid' when calling CustomerApi.merge_customer"
890
+ end
891
+ # resource path
892
+ local_var_path = '/customer/customers/{customer_profile_oid}/merge'.sub('{' + 'customer_profile_oid' + '}', customer_profile_oid.to_s)
893
+
894
+ # query parameters
895
+ query_params = {}
896
+ query_params[:'_expand'] = opts[:'_expand'] if !opts[:'_expand'].nil?
897
+
898
+ # header parameters
899
+ header_params = {}
900
+ header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
901
+ # HTTP header 'Accept' (if needed)
902
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
903
+ # HTTP header 'Content-Type'
904
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=UTF-8'])
905
+
906
+ # form parameters
907
+ form_params = {}
908
+
909
+ # http body (model)
910
+ post_body = @api_client.object_to_http_body(customer)
911
+ auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
912
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
913
+ :header_params => header_params,
914
+ :query_params => query_params,
915
+ :form_params => form_params,
916
+ :body => post_body,
917
+ :auth_names => auth_names)
918
+ if @api_client.config.debugging
919
+ @api_client.config.logger.debug "API called: CustomerApi#merge_customer\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
920
+ end
921
+ return data, status_code, headers
922
+ end
860
923
  # Searches for all matching values (using POST)
861
924
  # @param lookup_request LookupRequest
862
925
  # @param [Hash] opts the optional parameters
@@ -16,19 +16,31 @@ module UltracartClient
16
16
  class CustomerActivity
17
17
  attr_accessor :activities
18
18
 
19
+ attr_accessor :global_unsubscribed
20
+
21
+ attr_accessor :global_unsubscribed_dts
22
+
19
23
  attr_accessor :memberships
20
24
 
21
25
  attr_accessor :metrics
22
26
 
23
27
  attr_accessor :properties_list
24
28
 
29
+ attr_accessor :spam_complaint
30
+
31
+ attr_accessor :spam_complaint_dts
32
+
25
33
  # Attribute mapping from ruby-style variable name to JSON key.
26
34
  def self.attribute_map
27
35
  {
28
36
  :'activities' => :'activities',
37
+ :'global_unsubscribed' => :'global_unsubscribed',
38
+ :'global_unsubscribed_dts' => :'global_unsubscribed_dts',
29
39
  :'memberships' => :'memberships',
30
40
  :'metrics' => :'metrics',
31
- :'properties_list' => :'properties_list'
41
+ :'properties_list' => :'properties_list',
42
+ :'spam_complaint' => :'spam_complaint',
43
+ :'spam_complaint_dts' => :'spam_complaint_dts'
32
44
  }
33
45
  end
34
46
 
@@ -36,9 +48,13 @@ module UltracartClient
36
48
  def self.swagger_types
37
49
  {
38
50
  :'activities' => :'Array<Activity>',
51
+ :'global_unsubscribed' => :'BOOLEAN',
52
+ :'global_unsubscribed_dts' => :'String',
39
53
  :'memberships' => :'Array<ListSegmentMembership>',
40
54
  :'metrics' => :'Array<Metric>',
41
- :'properties_list' => :'Array<Property>'
55
+ :'properties_list' => :'Array<Property>',
56
+ :'spam_complaint' => :'BOOLEAN',
57
+ :'spam_complaint_dts' => :'String'
42
58
  }
43
59
  end
44
60
 
@@ -56,6 +72,14 @@ module UltracartClient
56
72
  end
57
73
  end
58
74
 
75
+ if attributes.has_key?(:'global_unsubscribed')
76
+ self.global_unsubscribed = attributes[:'global_unsubscribed']
77
+ end
78
+
79
+ if attributes.has_key?(:'global_unsubscribed_dts')
80
+ self.global_unsubscribed_dts = attributes[:'global_unsubscribed_dts']
81
+ end
82
+
59
83
  if attributes.has_key?(:'memberships')
60
84
  if (value = attributes[:'memberships']).is_a?(Array)
61
85
  self.memberships = value
@@ -73,6 +97,14 @@ module UltracartClient
73
97
  self.properties_list = value
74
98
  end
75
99
  end
100
+
101
+ if attributes.has_key?(:'spam_complaint')
102
+ self.spam_complaint = attributes[:'spam_complaint']
103
+ end
104
+
105
+ if attributes.has_key?(:'spam_complaint_dts')
106
+ self.spam_complaint_dts = attributes[:'spam_complaint_dts']
107
+ end
76
108
  end
77
109
 
78
110
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -94,9 +126,13 @@ module UltracartClient
94
126
  return true if self.equal?(o)
95
127
  self.class == o.class &&
96
128
  activities == o.activities &&
129
+ global_unsubscribed == o.global_unsubscribed &&
130
+ global_unsubscribed_dts == o.global_unsubscribed_dts &&
97
131
  memberships == o.memberships &&
98
132
  metrics == o.metrics &&
99
- properties_list == o.properties_list
133
+ properties_list == o.properties_list &&
134
+ spam_complaint == o.spam_complaint &&
135
+ spam_complaint_dts == o.spam_complaint_dts
100
136
  end
101
137
 
102
138
  # @see the `==` method
@@ -108,7 +144,7 @@ module UltracartClient
108
144
  # Calculates hash code according to all attributes.
109
145
  # @return [Fixnum] Hash code
110
146
  def hash
111
- [activities, memberships, metrics, properties_list].hash
147
+ [activities, global_unsubscribed, global_unsubscribed_dts, memberships, metrics, properties_list, spam_complaint, spam_complaint_dts].hash
112
148
  end
113
149
 
114
150
  # Builds the object from hash
@@ -0,0 +1,195 @@
1
+ =begin
2
+ #UltraCart Rest API V2
3
+
4
+ #UltraCart REST API Version 2
5
+
6
+ OpenAPI spec version: 2.0.0
7
+ Contact: support@ultracart.com
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.15-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module UltracartClient
16
+ class CustomerMergeRequest
17
+ # Customer profile oid to merge
18
+ attr_accessor :customer_profile_oid
19
+
20
+ # Email of the customer profile to merge
21
+ attr_accessor :email
22
+
23
+ # Attribute mapping from ruby-style variable name to JSON key.
24
+ def self.attribute_map
25
+ {
26
+ :'customer_profile_oid' => :'customer_profile_oid',
27
+ :'email' => :'email'
28
+ }
29
+ end
30
+
31
+ # Attribute type mapping.
32
+ def self.swagger_types
33
+ {
34
+ :'customer_profile_oid' => :'Integer',
35
+ :'email' => :'String'
36
+ }
37
+ end
38
+
39
+ # Initializes the object
40
+ # @param [Hash] attributes Model attributes in the form of hash
41
+ def initialize(attributes = {})
42
+ return unless attributes.is_a?(Hash)
43
+
44
+ # convert string to symbol for hash key
45
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
46
+
47
+ if attributes.has_key?(:'customer_profile_oid')
48
+ self.customer_profile_oid = attributes[:'customer_profile_oid']
49
+ end
50
+
51
+ if attributes.has_key?(:'email')
52
+ self.email = attributes[:'email']
53
+ end
54
+ end
55
+
56
+ # Show invalid properties with the reasons. Usually used together with valid?
57
+ # @return Array for valid properties with the reasons
58
+ def list_invalid_properties
59
+ invalid_properties = Array.new
60
+ invalid_properties
61
+ end
62
+
63
+ # Check to see if the all the properties in the model are valid
64
+ # @return true if the model is valid
65
+ def valid?
66
+ true
67
+ end
68
+
69
+ # Checks equality by comparing each attribute.
70
+ # @param [Object] Object to be compared
71
+ def ==(o)
72
+ return true if self.equal?(o)
73
+ self.class == o.class &&
74
+ customer_profile_oid == o.customer_profile_oid &&
75
+ email == o.email
76
+ end
77
+
78
+ # @see the `==` method
79
+ # @param [Object] Object to be compared
80
+ def eql?(o)
81
+ self == o
82
+ end
83
+
84
+ # Calculates hash code according to all attributes.
85
+ # @return [Fixnum] Hash code
86
+ def hash
87
+ [customer_profile_oid, email].hash
88
+ end
89
+
90
+ # Builds the object from hash
91
+ # @param [Hash] attributes Model attributes in the form of hash
92
+ # @return [Object] Returns the model itself
93
+ def build_from_hash(attributes)
94
+ return nil unless attributes.is_a?(Hash)
95
+ self.class.swagger_types.each_pair do |key, type|
96
+ if type =~ /\AArray<(.*)>/i
97
+ # check to ensure the input is an array given that the attribute
98
+ # is documented as an array but the input is not
99
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
100
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
101
+ end
102
+ elsif !attributes[self.class.attribute_map[key]].nil?
103
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
104
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
105
+ end
106
+
107
+ self
108
+ end
109
+
110
+ # Deserializes the data based on type
111
+ # @param string type Data type
112
+ # @param string value Value to be deserialized
113
+ # @return [Object] Deserialized data
114
+ def _deserialize(type, value)
115
+ case type.to_sym
116
+ when :DateTime
117
+ DateTime.parse(value)
118
+ when :Date
119
+ Date.parse(value)
120
+ when :String
121
+ value.to_s
122
+ when :Integer
123
+ value.to_i
124
+ when :Float
125
+ value.to_f
126
+ when :BOOLEAN
127
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
128
+ true
129
+ else
130
+ false
131
+ end
132
+ when :Object
133
+ # generic object (usually a Hash), return directly
134
+ value
135
+ when /\AArray<(?<inner_type>.+)>\z/
136
+ inner_type = Regexp.last_match[:inner_type]
137
+ value.map { |v| _deserialize(inner_type, v) }
138
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
139
+ k_type = Regexp.last_match[:k_type]
140
+ v_type = Regexp.last_match[:v_type]
141
+ {}.tap do |hash|
142
+ value.each do |k, v|
143
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
144
+ end
145
+ end
146
+ else # model
147
+ temp_model = UltracartClient.const_get(type).new
148
+ temp_model.build_from_hash(value)
149
+ end
150
+ end
151
+
152
+ # Returns the string representation of the object
153
+ # @return [String] String presentation of the object
154
+ def to_s
155
+ to_hash.to_s
156
+ end
157
+
158
+ # to_body is an alias to to_hash (backward compatibility)
159
+ # @return [Hash] Returns the object in the form of hash
160
+ def to_body
161
+ to_hash
162
+ end
163
+
164
+ # Returns the object in the form of hash
165
+ # @return [Hash] Returns the object in the form of hash
166
+ def to_hash
167
+ hash = {}
168
+ self.class.attribute_map.each_pair do |attr, param|
169
+ value = self.send(attr)
170
+ next if value.nil?
171
+ hash[param] = _to_hash(value)
172
+ end
173
+ hash
174
+ end
175
+
176
+ # Outputs non-array value in the form of hash
177
+ # For object, use to_hash. Otherwise, just return the value
178
+ # @param [Object] value Any valid value
179
+ # @return [Hash] Returns the value in the form of hash
180
+ def _to_hash(value)
181
+ if value.is_a?(Array)
182
+ value.compact.map { |v| _to_hash(v) }
183
+ elsif value.is_a?(Hash)
184
+ {}.tap do |hash|
185
+ value.each { |k, v| hash[k] = _to_hash(v) }
186
+ end
187
+ elsif value.respond_to? :to_hash
188
+ value.to_hash
189
+ else
190
+ value
191
+ end
192
+ end
193
+
194
+ end
195
+ end
@@ -11,5 +11,5 @@ Swagger Codegen version: 2.4.15-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module UltracartClient
14
- VERSION = '3.10.18'
14
+ VERSION = '3.10.19'
15
15
  end
data/lib/ultracart_api.rb CHANGED
@@ -211,6 +211,7 @@ require 'ultracart_api/models/customer_email_list_changes'
211
211
  require 'ultracart_api/models/customer_loyalty'
212
212
  require 'ultracart_api/models/customer_loyalty_ledger'
213
213
  require 'ultracart_api/models/customer_loyalty_redemption'
214
+ require 'ultracart_api/models/customer_merge_request'
214
215
  require 'ultracart_api/models/customer_orders_summary'
215
216
  require 'ultracart_api/models/customer_pricing_tier'
216
217
  require 'ultracart_api/models/customer_privacy'
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.18
4
+ version: 3.10.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - UltraCart
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-06-23 00:00:00.000000000 Z
11
+ date: 2022-07-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -422,6 +422,7 @@ files:
422
422
  - docs/CustomerLoyalty.md
423
423
  - docs/CustomerLoyaltyLedger.md
424
424
  - docs/CustomerLoyaltyRedemption.md
425
+ - docs/CustomerMergeRequest.md
425
426
  - docs/CustomerOrdersSummary.md
426
427
  - docs/CustomerPricingTier.md
427
428
  - docs/CustomerPrivacy.md
@@ -1089,6 +1090,7 @@ files:
1089
1090
  - lib/ultracart_api/models/customer_loyalty.rb
1090
1091
  - lib/ultracart_api/models/customer_loyalty_ledger.rb
1091
1092
  - lib/ultracart_api/models/customer_loyalty_redemption.rb
1093
+ - lib/ultracart_api/models/customer_merge_request.rb
1092
1094
  - lib/ultracart_api/models/customer_orders_summary.rb
1093
1095
  - lib/ultracart_api/models/customer_pricing_tier.rb
1094
1096
  - lib/ultracart_api/models/customer_privacy.rb