ultracart_api 3.10.40 → 3.10.41

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: f109507d36b123504da241a6e661fb776e163162b5f6a359623a06f40e949997
4
- data.tar.gz: bf40bf5365d215b5b5658741f1f9647fd1b4397b1a6095abd72c8ef230aaeec5
3
+ metadata.gz: 30bfaeaf76a7beb50ceed6616df3e20049ef35ea968d7d25d2e6880d08bbbd72
4
+ data.tar.gz: 1d3eff013894bdd2d6975d67294be4dfa6abb439c810571b2f317dca77b37138
5
5
  SHA512:
6
- metadata.gz: 8b34412e9e9bf82fb02194d134df7d7cfe8cc752d30a3908a0b9fa3670418e2cd7dfcfa19adbf2b535b957481072fe3670b7a590ae2b7b567b442820ef2d8f24
7
- data.tar.gz: bb800367609a21b1133e261549e2839b337c171b536418e90e1ebde2cf3cb7ff11678eef39c5650d589ff5419b2e2a47fd417686756c171e6cbe7ed6facb3a04
6
+ metadata.gz: fcc0facdd6c840e6df786ae90ec596fa60acc62d10703d452e0c40e3a690a85d7fb250a994648fd6ad4ad871b06874dfb1481dbea4b4894e01eed2ff29860ddf
7
+ data.tar.gz: 444fe35e3f5343df91e8020035cb5930bf014b605aabf83aba17676431421efc0553d40ee554168259e2a0e426c074f4430baf137cccf75de2cd8556eb5b6db3
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.40
10
+ - Package version: 3.10.41
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.40.gem
27
+ gem install ./ultracart_api-3.10.41.gem
28
28
  ```
29
- (for development, run `gem install --dev ./ultracart_api-3.10.40.gem` to install the development dependencies)
29
+ (for development, run `gem install --dev ./ultracart_api-3.10.41.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.40'
35
+ gem 'ultracart_api', '~> 3.10.41'
36
36
 
37
37
  ### Install from Git
38
38
 
@@ -1179,6 +1179,7 @@ Not every change is committed to every SDK.
1179
1179
 
1180
1180
  | Version | Date | Comments |
1181
1181
  | --: | :-: | --- |
1182
+ | 3.10.41 | 08/26/2022 | postcard address fields for comm sequence testing |
1182
1183
  | 3.10.40 | 08/22/2022 | exposing individual reviews within item.review object |
1183
1184
  | 3.10.39 | 08/19/2022 | order api - added cell phone fields for sms |
1184
1185
  | 3.10.38 | 08/12/2022 | internal code to allow merchant login as customer |
@@ -3,13 +3,19 @@
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
+ **address_1** | **String** | | [optional]
7
+ **address_2** | **String** | | [optional]
6
8
  **cart_id** | **String** | | [optional]
7
9
  **cart_item_ids** | **Array<String>** | | [optional]
10
+ **city** | **String** | | [optional]
8
11
  **esp_commseq_uuid** | **String** | | [optional]
12
+ **mail_card** | **BOOLEAN** | | [optional]
9
13
  **name** | **String** | | [optional]
10
14
  **order_id** | **String** | | [optional]
11
15
  **please_review** | **BOOLEAN** | | [optional]
16
+ **postal_code** | **String** | | [optional]
12
17
  **send_to_email** | **String** | | [optional]
13
18
  **send_to_logged_in_user** | **BOOLEAN** | | [optional]
19
+ **state** | **String** | | [optional]
14
20
 
15
21
 
@@ -20,6 +20,7 @@ Name | Type | Description | Notes
20
20
  **paused** | **BOOLEAN** | True if traffic should be paused to this variation | [optional]
21
21
  **revenue** | **Float** | Total revenue for this variation | [optional]
22
22
  **session_count** | **Integer** | Total sessions for this variation | [optional]
23
+ **sms_opt_ins** | **Integer** | SMS Opt Ins for this variation | [optional]
23
24
  **traffic_percentage** | **Float** | Percentage of the traffic this variation is currently receiving | [optional]
24
25
  **url** | **String** | Url of the variation if this experiment is a url experiment. | [optional]
25
26
  **variation_name** | **String** | Name of the variation | [optional]
@@ -13,6 +13,7 @@ Name | Type | Description | Notes
13
13
  **page_view_count** | **Integer** | Total page view count for this variation | [optional]
14
14
  **revenue** | **Float** | Total revenue for this variation | [optional]
15
15
  **session_count** | **Integer** | Total sessions for this variation | [optional]
16
+ **sms_opt_in_count** | **Integer** | Total SMS opt in count for this variation | [optional]
16
17
  **stat_dts** | **String** | Date/time that the statistic was created | [optional]
17
18
 
18
19
 
data/docs/OrderApi.md CHANGED
@@ -1006,6 +1006,7 @@ opts = {
1006
1006
  auto_order_cancel: false, # BOOLEAN | Cancel associated auto orders
1007
1007
  manual_refund: false, # BOOLEAN | Consider a manual refund done externally
1008
1008
  reverse_affiliate_transactions: true, # BOOLEAN | Reverse affiliate transactions
1009
+ issue_store_credit: false, # BOOLEAN | Issue a store credit instead of refunding the original payment method, loyalty must be configured on merchant account
1009
1010
  _expand: '_expand_example' # String | The object expansion to perform on the result. See documentation for examples
1010
1011
  }
1011
1012
 
@@ -1029,6 +1030,7 @@ Name | Type | Description | Notes
1029
1030
  **auto_order_cancel** | **BOOLEAN**| Cancel associated auto orders | [optional] [default to false]
1030
1031
  **manual_refund** | **BOOLEAN**| Consider a manual refund done externally | [optional] [default to false]
1031
1032
  **reverse_affiliate_transactions** | **BOOLEAN**| Reverse affiliate transactions | [optional] [default to true]
1033
+ **issue_store_credit** | **BOOLEAN**| Issue a store credit instead of refunding the original payment method, loyalty must be configured on merchant account | [optional] [default to false]
1032
1034
  **_expand** | **String**| The object expansion to perform on the result. See documentation for examples | [optional]
1033
1035
 
1034
1036
  ### Return type
@@ -1108,6 +1108,7 @@ module UltracartClient
1108
1108
  # @option opts [BOOLEAN] :auto_order_cancel Cancel associated auto orders (default to false)
1109
1109
  # @option opts [BOOLEAN] :manual_refund Consider a manual refund done externally (default to false)
1110
1110
  # @option opts [BOOLEAN] :reverse_affiliate_transactions Reverse affiliate transactions (default to true)
1111
+ # @option opts [BOOLEAN] :issue_store_credit Issue a store credit instead of refunding the original payment method, loyalty must be configured on merchant account (default to false)
1111
1112
  # @option opts [String] :_expand The object expansion to perform on the result. See documentation for examples
1112
1113
  # @return [OrderResponse]
1113
1114
  def refund_order(order, order_id, opts = {})
@@ -1125,6 +1126,7 @@ module UltracartClient
1125
1126
  # @option opts [BOOLEAN] :auto_order_cancel Cancel associated auto orders
1126
1127
  # @option opts [BOOLEAN] :manual_refund Consider a manual refund done externally
1127
1128
  # @option opts [BOOLEAN] :reverse_affiliate_transactions Reverse affiliate transactions
1129
+ # @option opts [BOOLEAN] :issue_store_credit Issue a store credit instead of refunding the original payment method, loyalty must be configured on merchant account
1128
1130
  # @option opts [String] :_expand The object expansion to perform on the result. See documentation for examples
1129
1131
  # @return [Array<(OrderResponse, Fixnum, Hash)>] OrderResponse data, response status code and response headers
1130
1132
  def refund_order_with_http_info(order, order_id, opts = {})
@@ -1149,6 +1151,7 @@ module UltracartClient
1149
1151
  query_params[:'auto_order_cancel'] = opts[:'auto_order_cancel'] if !opts[:'auto_order_cancel'].nil?
1150
1152
  query_params[:'manual_refund'] = opts[:'manual_refund'] if !opts[:'manual_refund'].nil?
1151
1153
  query_params[:'reverse_affiliate_transactions'] = opts[:'reverse_affiliate_transactions'] if !opts[:'reverse_affiliate_transactions'].nil?
1154
+ query_params[:'issue_store_credit'] = opts[:'issue_store_credit'] if !opts[:'issue_store_credit'].nil?
1152
1155
  query_params[:'_expand'] = opts[:'_expand'] if !opts[:'_expand'].nil?
1153
1156
 
1154
1157
  # header parameters
@@ -14,47 +14,71 @@ require 'date'
14
14
 
15
15
  module UltracartClient
16
16
  class EmailCommseqSequenceTestRequest
17
+ attr_accessor :address_1
18
+
19
+ attr_accessor :address_2
20
+
17
21
  attr_accessor :cart_id
18
22
 
19
23
  attr_accessor :cart_item_ids
20
24
 
25
+ attr_accessor :city
26
+
21
27
  attr_accessor :esp_commseq_uuid
22
28
 
29
+ attr_accessor :mail_card
30
+
23
31
  attr_accessor :name
24
32
 
25
33
  attr_accessor :order_id
26
34
 
27
35
  attr_accessor :please_review
28
36
 
37
+ attr_accessor :postal_code
38
+
29
39
  attr_accessor :send_to_email
30
40
 
31
41
  attr_accessor :send_to_logged_in_user
32
42
 
43
+ attr_accessor :state
44
+
33
45
  # Attribute mapping from ruby-style variable name to JSON key.
34
46
  def self.attribute_map
35
47
  {
48
+ :'address_1' => :'address_1',
49
+ :'address_2' => :'address_2',
36
50
  :'cart_id' => :'cart_id',
37
51
  :'cart_item_ids' => :'cart_item_ids',
52
+ :'city' => :'city',
38
53
  :'esp_commseq_uuid' => :'esp_commseq_uuid',
54
+ :'mail_card' => :'mail_card',
39
55
  :'name' => :'name',
40
56
  :'order_id' => :'order_id',
41
57
  :'please_review' => :'please_review',
58
+ :'postal_code' => :'postal_code',
42
59
  :'send_to_email' => :'send_to_email',
43
- :'send_to_logged_in_user' => :'send_to_logged_in_user'
60
+ :'send_to_logged_in_user' => :'send_to_logged_in_user',
61
+ :'state' => :'state'
44
62
  }
45
63
  end
46
64
 
47
65
  # Attribute type mapping.
48
66
  def self.swagger_types
49
67
  {
68
+ :'address_1' => :'String',
69
+ :'address_2' => :'String',
50
70
  :'cart_id' => :'String',
51
71
  :'cart_item_ids' => :'Array<String>',
72
+ :'city' => :'String',
52
73
  :'esp_commseq_uuid' => :'String',
74
+ :'mail_card' => :'BOOLEAN',
53
75
  :'name' => :'String',
54
76
  :'order_id' => :'String',
55
77
  :'please_review' => :'BOOLEAN',
78
+ :'postal_code' => :'String',
56
79
  :'send_to_email' => :'String',
57
- :'send_to_logged_in_user' => :'BOOLEAN'
80
+ :'send_to_logged_in_user' => :'BOOLEAN',
81
+ :'state' => :'String'
58
82
  }
59
83
  end
60
84
 
@@ -66,6 +90,14 @@ module UltracartClient
66
90
  # convert string to symbol for hash key
67
91
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
68
92
 
93
+ if attributes.has_key?(:'address_1')
94
+ self.address_1 = attributes[:'address_1']
95
+ end
96
+
97
+ if attributes.has_key?(:'address_2')
98
+ self.address_2 = attributes[:'address_2']
99
+ end
100
+
69
101
  if attributes.has_key?(:'cart_id')
70
102
  self.cart_id = attributes[:'cart_id']
71
103
  end
@@ -76,10 +108,18 @@ module UltracartClient
76
108
  end
77
109
  end
78
110
 
111
+ if attributes.has_key?(:'city')
112
+ self.city = attributes[:'city']
113
+ end
114
+
79
115
  if attributes.has_key?(:'esp_commseq_uuid')
80
116
  self.esp_commseq_uuid = attributes[:'esp_commseq_uuid']
81
117
  end
82
118
 
119
+ if attributes.has_key?(:'mail_card')
120
+ self.mail_card = attributes[:'mail_card']
121
+ end
122
+
83
123
  if attributes.has_key?(:'name')
84
124
  self.name = attributes[:'name']
85
125
  end
@@ -92,6 +132,10 @@ module UltracartClient
92
132
  self.please_review = attributes[:'please_review']
93
133
  end
94
134
 
135
+ if attributes.has_key?(:'postal_code')
136
+ self.postal_code = attributes[:'postal_code']
137
+ end
138
+
95
139
  if attributes.has_key?(:'send_to_email')
96
140
  self.send_to_email = attributes[:'send_to_email']
97
141
  end
@@ -99,6 +143,10 @@ module UltracartClient
99
143
  if attributes.has_key?(:'send_to_logged_in_user')
100
144
  self.send_to_logged_in_user = attributes[:'send_to_logged_in_user']
101
145
  end
146
+
147
+ if attributes.has_key?(:'state')
148
+ self.state = attributes[:'state']
149
+ end
102
150
  end
103
151
 
104
152
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -119,14 +167,20 @@ module UltracartClient
119
167
  def ==(o)
120
168
  return true if self.equal?(o)
121
169
  self.class == o.class &&
170
+ address_1 == o.address_1 &&
171
+ address_2 == o.address_2 &&
122
172
  cart_id == o.cart_id &&
123
173
  cart_item_ids == o.cart_item_ids &&
174
+ city == o.city &&
124
175
  esp_commseq_uuid == o.esp_commseq_uuid &&
176
+ mail_card == o.mail_card &&
125
177
  name == o.name &&
126
178
  order_id == o.order_id &&
127
179
  please_review == o.please_review &&
180
+ postal_code == o.postal_code &&
128
181
  send_to_email == o.send_to_email &&
129
- send_to_logged_in_user == o.send_to_logged_in_user
182
+ send_to_logged_in_user == o.send_to_logged_in_user &&
183
+ state == o.state
130
184
  end
131
185
 
132
186
  # @see the `==` method
@@ -138,7 +192,7 @@ module UltracartClient
138
192
  # Calculates hash code according to all attributes.
139
193
  # @return [Fixnum] Hash code
140
194
  def hash
141
- [cart_id, cart_item_ids, esp_commseq_uuid, name, order_id, please_review, send_to_email, send_to_logged_in_user].hash
195
+ [address_1, address_2, cart_id, cart_item_ids, city, esp_commseq_uuid, mail_card, name, order_id, please_review, postal_code, send_to_email, send_to_logged_in_user, state].hash
142
196
  end
143
197
 
144
198
  # Builds the object from hash
@@ -65,6 +65,9 @@ module UltracartClient
65
65
  # Total sessions for this variation
66
66
  attr_accessor :session_count
67
67
 
68
+ # SMS Opt Ins for this variation
69
+ attr_accessor :sms_opt_ins
70
+
68
71
  # Percentage of the traffic this variation is currently receiving
69
72
  attr_accessor :traffic_percentage
70
73
 
@@ -100,6 +103,7 @@ module UltracartClient
100
103
  :'paused' => :'paused',
101
104
  :'revenue' => :'revenue',
102
105
  :'session_count' => :'session_count',
106
+ :'sms_opt_ins' => :'sms_opt_ins',
103
107
  :'traffic_percentage' => :'traffic_percentage',
104
108
  :'url' => :'url',
105
109
  :'variation_name' => :'variation_name',
@@ -128,6 +132,7 @@ module UltracartClient
128
132
  :'paused' => :'BOOLEAN',
129
133
  :'revenue' => :'Float',
130
134
  :'session_count' => :'Integer',
135
+ :'sms_opt_ins' => :'Integer',
131
136
  :'traffic_percentage' => :'Float',
132
137
  :'url' => :'String',
133
138
  :'variation_name' => :'String',
@@ -214,6 +219,10 @@ module UltracartClient
214
219
  self.session_count = attributes[:'session_count']
215
220
  end
216
221
 
222
+ if attributes.has_key?(:'sms_opt_ins')
223
+ self.sms_opt_ins = attributes[:'sms_opt_ins']
224
+ end
225
+
217
226
  if attributes.has_key?(:'traffic_percentage')
218
227
  self.traffic_percentage = attributes[:'traffic_percentage']
219
228
  end
@@ -270,6 +279,7 @@ module UltracartClient
270
279
  paused == o.paused &&
271
280
  revenue == o.revenue &&
272
281
  session_count == o.session_count &&
282
+ sms_opt_ins == o.sms_opt_ins &&
273
283
  traffic_percentage == o.traffic_percentage &&
274
284
  url == o.url &&
275
285
  variation_name == o.variation_name &&
@@ -286,7 +296,7 @@ module UltracartClient
286
296
  # Calculates hash code according to all attributes.
287
297
  # @return [Fixnum] Hash code
288
298
  def hash
289
- [add_to_cart_count, average_duration_seconds, average_objective_per_session, average_order_value, bounce_count, conversion_rate, daily_statistics, duration_seconds_sum, event_count, initiate_checkout_count, order_count, order_item_count, original_traffic_percentage, page_view_count, paused, revenue, session_count, traffic_percentage, url, variation_name, variation_number, winner].hash
299
+ [add_to_cart_count, average_duration_seconds, average_objective_per_session, average_order_value, bounce_count, conversion_rate, daily_statistics, duration_seconds_sum, event_count, initiate_checkout_count, order_count, order_item_count, original_traffic_percentage, page_view_count, paused, revenue, session_count, sms_opt_ins, traffic_percentage, url, variation_name, variation_number, winner].hash
290
300
  end
291
301
 
292
302
  # Builds the object from hash
@@ -44,6 +44,9 @@ module UltracartClient
44
44
  # Total sessions for this variation
45
45
  attr_accessor :session_count
46
46
 
47
+ # Total SMS opt in count for this variation
48
+ attr_accessor :sms_opt_in_count
49
+
47
50
  # Date/time that the statistic was created
48
51
  attr_accessor :stat_dts
49
52
 
@@ -60,6 +63,7 @@ module UltracartClient
60
63
  :'page_view_count' => :'page_view_count',
61
64
  :'revenue' => :'revenue',
62
65
  :'session_count' => :'session_count',
66
+ :'sms_opt_in_count' => :'sms_opt_in_count',
63
67
  :'stat_dts' => :'stat_dts'
64
68
  }
65
69
  end
@@ -77,6 +81,7 @@ module UltracartClient
77
81
  :'page_view_count' => :'Integer',
78
82
  :'revenue' => :'Float',
79
83
  :'session_count' => :'Integer',
84
+ :'sms_opt_in_count' => :'Integer',
80
85
  :'stat_dts' => :'String'
81
86
  }
82
87
  end
@@ -129,6 +134,10 @@ module UltracartClient
129
134
  self.session_count = attributes[:'session_count']
130
135
  end
131
136
 
137
+ if attributes.has_key?(:'sms_opt_in_count')
138
+ self.sms_opt_in_count = attributes[:'sms_opt_in_count']
139
+ end
140
+
132
141
  if attributes.has_key?(:'stat_dts')
133
142
  self.stat_dts = attributes[:'stat_dts']
134
143
  end
@@ -162,6 +171,7 @@ module UltracartClient
162
171
  page_view_count == o.page_view_count &&
163
172
  revenue == o.revenue &&
164
173
  session_count == o.session_count &&
174
+ sms_opt_in_count == o.sms_opt_in_count &&
165
175
  stat_dts == o.stat_dts
166
176
  end
167
177
 
@@ -174,7 +184,7 @@ module UltracartClient
174
184
  # Calculates hash code according to all attributes.
175
185
  # @return [Fixnum] Hash code
176
186
  def hash
177
- [add_to_cart_count, bounce_count, duration_seconds_sum, event_count, initiate_checkout_count, order_count, order_item_count, page_view_count, revenue, session_count, stat_dts].hash
187
+ [add_to_cart_count, bounce_count, duration_seconds_sum, event_count, initiate_checkout_count, order_count, order_item_count, page_view_count, revenue, session_count, sms_opt_in_count, stat_dts].hash
178
188
  end
179
189
 
180
190
  # 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.40'
14
+ VERSION = '3.10.41'
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.40
4
+ version: 3.10.41
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-22 00:00:00.000000000 Z
11
+ date: 2022-08-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus