wallee-ruby-sdk 2.2.3 → 2.2.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +1 -1
  3. data/README.md +1 -1
  4. data/lib/wallee-ruby-sdk.rb +17 -5
  5. data/lib/wallee-ruby-sdk/api/payment_terminal_till_service_api.rb +99 -0
  6. data/lib/wallee-ruby-sdk/api/shopify_subscription_service_api.rb +124 -0
  7. data/lib/wallee-ruby-sdk/api/shopify_transaction_service_api.rb +213 -0
  8. data/lib/wallee-ruby-sdk/api/subscriber_service_api.rb +3 -3
  9. data/lib/wallee-ruby-sdk/api/subscription_service_api.rb +67 -0
  10. data/lib/wallee-ruby-sdk/api/token_service_api.rb +126 -0
  11. data/lib/wallee-ruby-sdk/api_client.rb +5 -3
  12. data/lib/wallee-ruby-sdk/configuration.rb +2 -2
  13. data/lib/wallee-ruby-sdk/models/abstract_account_update.rb +11 -1
  14. data/lib/wallee-ruby-sdk/models/{abstract_shopify_subscription_product_active.rb → abstract_shopify_subscription_product_update.rb} +2 -12
  15. data/lib/wallee-ruby-sdk/models/abstract_space_update.rb +11 -1
  16. data/lib/wallee-ruby-sdk/models/abstract_transaction_pending.rb +59 -1
  17. data/lib/wallee-ruby-sdk/models/abstract_webhook_url_update.rb +24 -0
  18. data/lib/wallee-ruby-sdk/models/account.rb +31 -1
  19. data/lib/wallee-ruby-sdk/models/account_create.rb +11 -1
  20. data/lib/wallee-ruby-sdk/models/account_update.rb +11 -1
  21. data/lib/wallee-ruby-sdk/models/charge_attempt.rb +11 -1
  22. data/lib/wallee-ruby-sdk/models/payment_connector_configuration.rb +13 -1
  23. data/lib/wallee-ruby-sdk/models/sales_channel.rb +34 -4
  24. data/lib/wallee-ruby-sdk/models/shopify_additional_line_item_data.rb +35 -0
  25. data/lib/wallee-ruby-sdk/models/shopify_integration.rb +73 -31
  26. data/lib/wallee-ruby-sdk/models/shopify_integration_payment_app_version.rb +34 -0
  27. data/lib/wallee-ruby-sdk/models/{shopify_integration_app_version.rb → shopify_integration_subscription_app_version.rb} +3 -3
  28. data/lib/wallee-ruby-sdk/models/shopify_subscriber_creation.rb +216 -0
  29. data/lib/wallee-ruby-sdk/models/shopify_subscription.rb +51 -7
  30. data/lib/wallee-ruby-sdk/models/shopify_subscription_address.rb +0 -60
  31. data/lib/wallee-ruby-sdk/models/shopify_subscription_address_create.rb +546 -0
  32. data/lib/wallee-ruby-sdk/models/shopify_subscription_creation_request.rb +353 -0
  33. data/lib/wallee-ruby-sdk/models/shopify_subscription_model_billing_configuration.rb +261 -0
  34. data/lib/wallee-ruby-sdk/models/{shopify_subscription_edit_model_item.rb → shopify_subscription_model_item.rb} +2 -2
  35. data/lib/wallee-ruby-sdk/models/{shopify_subscription_edit_model_tax_line.rb → shopify_subscription_model_tax_line.rb} +1 -1
  36. data/lib/wallee-ruby-sdk/models/shopify_subscription_product_create.rb +9 -14
  37. data/lib/wallee-ruby-sdk/models/{shopify_subscription_product_active.rb → shopify_subscription_product_update.rb} +2 -12
  38. data/lib/wallee-ruby-sdk/models/shopify_subscription_update_addresses_request.rb +211 -0
  39. data/lib/wallee-ruby-sdk/models/shopify_subscription_update_request.rb +11 -81
  40. data/lib/wallee-ruby-sdk/models/space.rb +31 -1
  41. data/lib/wallee-ruby-sdk/models/space_create.rb +11 -1
  42. data/lib/wallee-ruby-sdk/models/space_update.rb +11 -1
  43. data/lib/wallee-ruby-sdk/models/subscription.rb +11 -1
  44. data/lib/wallee-ruby-sdk/models/subscription_charge.rb +48 -0
  45. data/lib/wallee-ruby-sdk/models/subscription_charge_create.rb +48 -0
  46. data/lib/wallee-ruby-sdk/models/subscription_create_request.rb +1 -1
  47. data/lib/wallee-ruby-sdk/models/subscription_product_version.rb +11 -1
  48. data/lib/wallee-ruby-sdk/models/subscription_product_version_pending.rb +14 -4
  49. data/lib/wallee-ruby-sdk/models/subscription_update_request.rb +206 -0
  50. data/lib/wallee-ruby-sdk/models/tax_calculation.rb +35 -0
  51. data/lib/wallee-ruby-sdk/models/transaction.rb +69 -1
  52. data/lib/wallee-ruby-sdk/models/transaction_completion.rb +26 -1
  53. data/lib/wallee-ruby-sdk/models/transaction_completion_behavior.rb +36 -0
  54. data/lib/wallee-ruby-sdk/models/transaction_completion_request.rb +26 -1
  55. data/lib/wallee-ruby-sdk/models/transaction_create.rb +59 -1
  56. data/lib/wallee-ruby-sdk/models/transaction_pending.rb +59 -1
  57. data/lib/wallee-ruby-sdk/models/webhook_url.rb +24 -0
  58. data/lib/wallee-ruby-sdk/models/webhook_url_create.rb +24 -0
  59. data/lib/wallee-ruby-sdk/models/webhook_url_update.rb +24 -0
  60. data/lib/wallee-ruby-sdk/version.rb +1 -1
  61. data/wallee-ruby-sdk.gemspec +3 -2
  62. metadata +45 -14
@@ -90,7 +90,7 @@ module Wallee
90
90
  # @param space_id
91
91
  # @param entity The customer object with the properties which should be created.
92
92
  # @param [Hash] opts the optional parameters
93
- # @return [SubscriberCreate]
93
+ # @return [Subscriber]
94
94
  def create(space_id, entity, opts = {})
95
95
  data, _status_code, _headers = create_with_http_info(space_id, entity, opts)
96
96
  return data
@@ -101,7 +101,7 @@ module Wallee
101
101
  # @param space_id
102
102
  # @param entity The customer object with the properties which should be created.
103
103
  # @param [Hash] opts the optional parameters
104
- # @return [Array<(SubscriberCreate, Fixnum, Hash)>] SubscriberCreate data, response status code and response headers
104
+ # @return [Array<(Subscriber, Fixnum, Hash)>] Subscriber data, response status code and response headers
105
105
  def create_with_http_info(space_id, entity, opts = {})
106
106
  if @api_client.config.debugging
107
107
  @api_client.config.logger.debug "Calling API: SubscriberService.create ..."
@@ -140,7 +140,7 @@ module Wallee
140
140
  :form_params => form_params,
141
141
  :body => post_body,
142
142
  :auth_names => auth_names,
143
- :return_type => 'SubscriberCreate')
143
+ :return_type => 'Subscriber')
144
144
  if @api_client.config.debugging
145
145
  @api_client.config.logger.debug "API called: SubscriberService#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
146
146
  end
@@ -600,6 +600,73 @@ module Wallee
600
600
  return data, status_code, headers
601
601
  end
602
602
 
603
+ # update
604
+ # This operation allows to update the subscription.
605
+ # @param space_id
606
+ # @param subscription_id
607
+ # @param request
608
+ # @param [Hash] opts the optional parameters
609
+ # @return [Subscription]
610
+ def update(space_id, subscription_id, request, opts = {})
611
+ data, _status_code, _headers = update_with_http_info(space_id, subscription_id, request, opts)
612
+ return data
613
+ end
614
+
615
+ # update
616
+ # This operation allows to update the subscription.
617
+ # @param space_id
618
+ # @param subscription_id
619
+ # @param request
620
+ # @param [Hash] opts the optional parameters
621
+ # @return [Array<(Subscription, Fixnum, Hash)>] Subscription data, response status code and response headers
622
+ def update_with_http_info(space_id, subscription_id, request, opts = {})
623
+ if @api_client.config.debugging
624
+ @api_client.config.logger.debug "Calling API: SubscriptionService.update ..."
625
+ end
626
+ # verify the required parameter 'space_id' is set
627
+ fail ArgumentError, "Missing the required parameter 'space_id' when calling SubscriptionService.update" if space_id.nil?
628
+ # verify the required parameter 'subscription_id' is set
629
+ fail ArgumentError, "Missing the required parameter 'subscription_id' when calling SubscriptionService.update" if subscription_id.nil?
630
+ # verify the required parameter 'request' is set
631
+ fail ArgumentError, "Missing the required parameter 'request' when calling SubscriptionService.update" if request.nil?
632
+ # resource path
633
+ local_var_path = "/subscription/update".sub('{format}','json')
634
+
635
+ # query parameters
636
+ query_params = {}
637
+ query_params[:'spaceId'] = space_id
638
+ query_params[:'subscriptionId'] = subscription_id
639
+
640
+ # header parameters
641
+ header_params = {}
642
+
643
+ # HTTP header 'Accept' (if needed)
644
+ local_header_accept = ['application/json;charset=utf-8']
645
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
646
+
647
+ # HTTP header 'Content-Type'
648
+ local_header_content_type = ['application/json;charset=utf-8']
649
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
650
+
651
+ # form parameters
652
+ form_params = {}
653
+
654
+ # http body (model)
655
+ post_body = @api_client.object_to_http_body(request)
656
+ auth_names = []
657
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
658
+ :header_params => header_params,
659
+ :query_params => query_params,
660
+ :form_params => form_params,
661
+ :body => post_body,
662
+ :auth_names => auth_names,
663
+ :return_type => 'Subscription')
664
+ if @api_client.config.debugging
665
+ @api_client.config.logger.debug "API called: SubscriptionService#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
666
+ end
667
+ return data, status_code, headers
668
+ end
669
+
603
670
  # update product version
604
671
  # The update product version operation updates the product version of the subscription to the latest active product version.
605
672
  # @param space_id
@@ -25,6 +25,69 @@ module Wallee
25
25
  @api_client = api_client
26
26
  end
27
27
 
28
+ # Check If Token Creation Is Possible
29
+ # This operation checks if the given transaction can be used to create a token out of it.
30
+ # @param space_id
31
+ # @param transaction_id The id of the transaction for which we want to check if the token can be created or not.
32
+ # @param [Hash] opts the optional parameters
33
+ # @return [BOOLEAN]
34
+ def check_token_creation_possible(space_id, transaction_id, opts = {})
35
+ data, _status_code, _headers = check_token_creation_possible_with_http_info(space_id, transaction_id, opts)
36
+ return data
37
+ end
38
+
39
+ # Check If Token Creation Is Possible
40
+ # This operation checks if the given transaction can be used to create a token out of it.
41
+ # @param space_id
42
+ # @param transaction_id The id of the transaction for which we want to check if the token can be created or not.
43
+ # @param [Hash] opts the optional parameters
44
+ # @return [Array<(BOOLEAN, Fixnum, Hash)>] BOOLEAN data, response status code and response headers
45
+ def check_token_creation_possible_with_http_info(space_id, transaction_id, opts = {})
46
+ if @api_client.config.debugging
47
+ @api_client.config.logger.debug "Calling API: TokenService.check_token_creation_possible ..."
48
+ end
49
+ # verify the required parameter 'space_id' is set
50
+ fail ArgumentError, "Missing the required parameter 'space_id' when calling TokenService.check_token_creation_possible" if space_id.nil?
51
+ # verify the required parameter 'transaction_id' is set
52
+ fail ArgumentError, "Missing the required parameter 'transaction_id' when calling TokenService.check_token_creation_possible" if transaction_id.nil?
53
+ # resource path
54
+ local_var_path = "/token/check-token-creation-possible".sub('{format}','json')
55
+
56
+ # query parameters
57
+ query_params = {}
58
+ query_params[:'spaceId'] = space_id
59
+ query_params[:'transactionId'] = transaction_id
60
+
61
+ # header parameters
62
+ header_params = {}
63
+
64
+ # HTTP header 'Accept' (if needed)
65
+ local_header_accept = []
66
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
67
+
68
+ # HTTP header 'Content-Type'
69
+ local_header_content_type = []
70
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
71
+
72
+ # form parameters
73
+ form_params = {}
74
+
75
+ # http body (model)
76
+ post_body = nil
77
+ auth_names = []
78
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
79
+ :header_params => header_params,
80
+ :query_params => query_params,
81
+ :form_params => form_params,
82
+ :body => post_body,
83
+ :auth_names => auth_names,
84
+ :return_type => 'BOOLEAN')
85
+ if @api_client.config.debugging
86
+ @api_client.config.logger.debug "API called: TokenService#check_token_creation_possible\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
87
+ end
88
+ return data, status_code, headers
89
+ end
90
+
28
91
  # Count
29
92
  # Counts the number of items in the database as restricted by the given filter.
30
93
  # @param space_id
@@ -147,6 +210,69 @@ module Wallee
147
210
  return data, status_code, headers
148
211
  end
149
212
 
213
+ # Create Token Based On Transaction
214
+ # This operation creates a token for the given transaction and fills it with the stored payment information of the transaction.
215
+ # @param space_id
216
+ # @param transaction_id The id of the transaction for which we want to create the token.
217
+ # @param [Hash] opts the optional parameters
218
+ # @return [TokenVersion]
219
+ def create_token_based_on_transaction(space_id, transaction_id, opts = {})
220
+ data, _status_code, _headers = create_token_based_on_transaction_with_http_info(space_id, transaction_id, opts)
221
+ return data
222
+ end
223
+
224
+ # Create Token Based On Transaction
225
+ # This operation creates a token for the given transaction and fills it with the stored payment information of the transaction.
226
+ # @param space_id
227
+ # @param transaction_id The id of the transaction for which we want to create the token.
228
+ # @param [Hash] opts the optional parameters
229
+ # @return [Array<(TokenVersion, Fixnum, Hash)>] TokenVersion data, response status code and response headers
230
+ def create_token_based_on_transaction_with_http_info(space_id, transaction_id, opts = {})
231
+ if @api_client.config.debugging
232
+ @api_client.config.logger.debug "Calling API: TokenService.create_token_based_on_transaction ..."
233
+ end
234
+ # verify the required parameter 'space_id' is set
235
+ fail ArgumentError, "Missing the required parameter 'space_id' when calling TokenService.create_token_based_on_transaction" if space_id.nil?
236
+ # verify the required parameter 'transaction_id' is set
237
+ fail ArgumentError, "Missing the required parameter 'transaction_id' when calling TokenService.create_token_based_on_transaction" if transaction_id.nil?
238
+ # resource path
239
+ local_var_path = "/token/create-token-based-on-transaction".sub('{format}','json')
240
+
241
+ # query parameters
242
+ query_params = {}
243
+ query_params[:'spaceId'] = space_id
244
+ query_params[:'transactionId'] = transaction_id
245
+
246
+ # header parameters
247
+ header_params = {}
248
+
249
+ # HTTP header 'Accept' (if needed)
250
+ local_header_accept = []
251
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
252
+
253
+ # HTTP header 'Content-Type'
254
+ local_header_content_type = []
255
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
256
+
257
+ # form parameters
258
+ form_params = {}
259
+
260
+ # http body (model)
261
+ post_body = nil
262
+ auth_names = []
263
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
264
+ :header_params => header_params,
265
+ :query_params => query_params,
266
+ :form_params => form_params,
267
+ :body => post_body,
268
+ :auth_names => auth_names,
269
+ :return_type => 'TokenVersion')
270
+ if @api_client.config.debugging
271
+ @api_client.config.logger.debug "API called: TokenService#create_token_based_on_transaction\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
272
+ end
273
+ return data, status_code, headers
274
+ end
275
+
150
276
  # Create Transaction for Token Update
151
277
  # This operation creates a transaction which allows the updating of the provided token.
152
278
  # @param space_id
@@ -20,7 +20,7 @@ require 'json'
20
20
  require 'logger'
21
21
  require 'tempfile'
22
22
  require 'typhoeus'
23
- require 'uri'
23
+ require 'addressable/uri'
24
24
  require 'base64'
25
25
  require 'time'
26
26
  require 'openssl'
@@ -71,7 +71,7 @@ module Wallee
71
71
  :message => response.return_message)
72
72
  else
73
73
  fail ApiError.new(:code => response.code,
74
- :response_headers => response.headers,
74
+ :response_headers => response.headers.to_h,
75
75
  :response_body => response.body),
76
76
  response.status_message
77
77
  end
@@ -108,6 +108,8 @@ module Wallee
108
108
 
109
109
  header_params = header_params.merge(get_authentication_headers(http_method, path, query_params))
110
110
 
111
+
112
+
111
113
  req_opts = {
112
114
  :method => http_method,
113
115
  :headers => header_params,
@@ -292,7 +294,7 @@ module Wallee
292
294
  def build_request_url(path)
293
295
  # Add leading and trailing slashes to path
294
296
  path = "/#{path}".gsub(/\/+/, '/')
295
- URI.encode(@config.base_url + path)
297
+ Addressable::URI.encode(@config.base_url + path)
296
298
  end
297
299
 
298
300
  # Builds the HTTP request body
@@ -15,7 +15,7 @@ limitations under the License.
15
15
 
16
16
  =end
17
17
 
18
- require 'uri'
18
+ require 'addressable/uri'
19
19
 
20
20
  module Wallee
21
21
  class Configuration
@@ -133,7 +133,7 @@ module Wallee
133
133
 
134
134
  def base_url
135
135
  url = "#{scheme}://#{[host, base_path].join('/').gsub(/\/+/, '/')}".sub(/\/+\z/, '')
136
- URI.encode(url)
136
+ Addressable::URI.encode(url)
137
137
  end
138
138
 
139
139
  end
@@ -19,6 +19,9 @@ require 'date'
19
19
 
20
20
  module Wallee
21
21
  class AbstractAccountUpdate
22
+ #
23
+ attr_accessor :last_modified_date
24
+
22
25
  # The name of the account identifies the account within the administrative interface.
23
26
  attr_accessor :name
24
27
 
@@ -28,6 +31,7 @@ module Wallee
28
31
  # Attribute mapping from ruby-style variable name to JSON key.
29
32
  def self.attribute_map
30
33
  {
34
+ :'last_modified_date' => :'lastModifiedDate',
31
35
  :'name' => :'name',
32
36
  :'subaccount_limit' => :'subaccountLimit'
33
37
  }
@@ -36,6 +40,7 @@ module Wallee
36
40
  # Attribute type mapping.
37
41
  def self.swagger_types
38
42
  {
43
+ :'last_modified_date' => :'DateTime',
39
44
  :'name' => :'String',
40
45
  :'subaccount_limit' => :'Integer'
41
46
  }
@@ -49,6 +54,10 @@ module Wallee
49
54
  # convert string to symbol for hash key
50
55
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
51
56
 
57
+ if attributes.has_key?(:'lastModifiedDate')
58
+ self.last_modified_date = attributes[:'lastModifiedDate']
59
+ end
60
+
52
61
  if attributes.has_key?(:'name')
53
62
  self.name = attributes[:'name']
54
63
  end
@@ -100,6 +109,7 @@ module Wallee
100
109
  def ==(o)
101
110
  return true if self.equal?(o)
102
111
  self.class == o.class &&
112
+ last_modified_date == o.last_modified_date &&
103
113
  name == o.name &&
104
114
  subaccount_limit == o.subaccount_limit
105
115
  end
@@ -113,7 +123,7 @@ module Wallee
113
123
  # Calculates hash code according to all attributes.
114
124
  # @return [Fixnum] Hash code
115
125
  def hash
116
- [name, subaccount_limit].hash
126
+ [last_modified_date, name, subaccount_limit].hash
117
127
  end
118
128
 
119
129
  # Builds the object from hash
@@ -18,7 +18,7 @@ limitations under the License.
18
18
  require 'date'
19
19
 
20
20
  module Wallee
21
- class AbstractShopifySubscriptionProductActive
21
+ class AbstractShopifySubscriptionProductUpdate
22
22
  #
23
23
  attr_accessor :absolute_price_adjustment
24
24
 
@@ -52,9 +52,6 @@ module Wallee
52
52
  #
53
53
  attr_accessor :relative_price_adjustment
54
54
 
55
- #
56
- attr_accessor :state
57
-
58
55
  # Define whether the order confirmation email of the Shopify shop is sent to the customer for recurring orders.
59
56
  attr_accessor :store_order_confirmation_email_enabled
60
57
 
@@ -78,7 +75,6 @@ module Wallee
78
75
  :'minimal_billing_cycles' => :'minimalBillingCycles',
79
76
  :'pricing_option' => :'pricingOption',
80
77
  :'relative_price_adjustment' => :'relativePriceAdjustment',
81
- :'state' => :'state',
82
78
  :'store_order_confirmation_email_enabled' => :'storeOrderConfirmationEmailEnabled',
83
79
  :'subscriber_suspension_allowed' => :'subscriberSuspensionAllowed',
84
80
  :'termination_billing_cycles' => :'terminationBillingCycles'
@@ -99,7 +95,6 @@ module Wallee
99
95
  :'minimal_billing_cycles' => :'Integer',
100
96
  :'pricing_option' => :'ShopifySubscriptionProductPricingOption',
101
97
  :'relative_price_adjustment' => :'Float',
102
- :'state' => :'ShopifySubscriptionProductState',
103
98
  :'store_order_confirmation_email_enabled' => :'BOOLEAN',
104
99
  :'subscriber_suspension_allowed' => :'BOOLEAN',
105
100
  :'termination_billing_cycles' => :'Integer'
@@ -158,10 +153,6 @@ module Wallee
158
153
  self.relative_price_adjustment = attributes[:'relativePriceAdjustment']
159
154
  end
160
155
 
161
- if attributes.has_key?(:'state')
162
- self.state = attributes[:'state']
163
- end
164
-
165
156
  if attributes.has_key?(:'storeOrderConfirmationEmailEnabled')
166
157
  self.store_order_confirmation_email_enabled = attributes[:'storeOrderConfirmationEmailEnabled']
167
158
  end
@@ -204,7 +195,6 @@ module Wallee
204
195
  minimal_billing_cycles == o.minimal_billing_cycles &&
205
196
  pricing_option == o.pricing_option &&
206
197
  relative_price_adjustment == o.relative_price_adjustment &&
207
- state == o.state &&
208
198
  store_order_confirmation_email_enabled == o.store_order_confirmation_email_enabled &&
209
199
  subscriber_suspension_allowed == o.subscriber_suspension_allowed &&
210
200
  termination_billing_cycles == o.termination_billing_cycles
@@ -219,7 +209,7 @@ module Wallee
219
209
  # Calculates hash code according to all attributes.
220
210
  # @return [Fixnum] Hash code
221
211
  def hash
222
- [absolute_price_adjustment, billing_day_of_month, billing_interval_amount, billing_interval_unit, billing_weekday, fixed_price, maximal_billing_cycles, maximal_suspendable_cycles, minimal_billing_cycles, pricing_option, relative_price_adjustment, state, store_order_confirmation_email_enabled, subscriber_suspension_allowed, termination_billing_cycles].hash
212
+ [absolute_price_adjustment, billing_day_of_month, billing_interval_amount, billing_interval_unit, billing_weekday, fixed_price, maximal_billing_cycles, maximal_suspendable_cycles, minimal_billing_cycles, pricing_option, relative_price_adjustment, store_order_confirmation_email_enabled, subscriber_suspension_allowed, termination_billing_cycles].hash
223
213
  end
224
214
 
225
215
  # Builds the object from hash
@@ -19,6 +19,9 @@ require 'date'
19
19
 
20
20
  module Wallee
21
21
  class AbstractSpaceUpdate
22
+ #
23
+ attr_accessor :last_modified_date
24
+
22
25
  # The space name is used internally to identify the space in administrative interfaces. For example it is used within search fields and hence it should be distinct and descriptive.
23
26
  attr_accessor :name
24
27
 
@@ -43,6 +46,7 @@ module Wallee
43
46
  # Attribute mapping from ruby-style variable name to JSON key.
44
47
  def self.attribute_map
45
48
  {
49
+ :'last_modified_date' => :'lastModifiedDate',
46
50
  :'name' => :'name',
47
51
  :'postal_address' => :'postalAddress',
48
52
  :'primary_currency' => :'primaryCurrency',
@@ -56,6 +60,7 @@ module Wallee
56
60
  # Attribute type mapping.
57
61
  def self.swagger_types
58
62
  {
63
+ :'last_modified_date' => :'DateTime',
59
64
  :'name' => :'String',
60
65
  :'postal_address' => :'SpaceAddressCreate',
61
66
  :'primary_currency' => :'String',
@@ -74,6 +79,10 @@ module Wallee
74
79
  # convert string to symbol for hash key
75
80
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
76
81
 
82
+ if attributes.has_key?(:'lastModifiedDate')
83
+ self.last_modified_date = attributes[:'lastModifiedDate']
84
+ end
85
+
77
86
  if attributes.has_key?(:'name')
78
87
  self.name = attributes[:'name']
79
88
  end
@@ -147,6 +156,7 @@ module Wallee
147
156
  def ==(o)
148
157
  return true if self.equal?(o)
149
158
  self.class == o.class &&
159
+ last_modified_date == o.last_modified_date &&
150
160
  name == o.name &&
151
161
  postal_address == o.postal_address &&
152
162
  primary_currency == o.primary_currency &&
@@ -165,7 +175,7 @@ module Wallee
165
175
  # Calculates hash code according to all attributes.
166
176
  # @return [Fixnum] Hash code
167
177
  def hash
168
- [name, postal_address, primary_currency, request_limit, state, technical_contact_addresses, time_zone].hash
178
+ [last_modified_date, name, postal_address, primary_currency, request_limit, state, technical_contact_addresses, time_zone].hash
169
179
  end
170
180
 
171
181
  # Builds the object from hash