wallee-ruby-sdk 2.2.4 → 2.2.5

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.
Files changed (40) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +1 -1
  3. data/lib/wallee-ruby-sdk.rb +23 -1
  4. data/lib/wallee-ruby-sdk/api/charge_bank_transaction_service_api.rb +213 -0
  5. data/lib/wallee-ruby-sdk/api/external_transfer_bank_transaction_service_api.rb +213 -0
  6. data/lib/wallee-ruby-sdk/api/internal_transfer_bank_transaction_service_api.rb +213 -0
  7. data/lib/wallee-ruby-sdk/api/refund_bank_transaction_service_api.rb +213 -0
  8. data/lib/wallee-ruby-sdk/api/refund_recovery_bank_transaction_service_api.rb +213 -0
  9. data/lib/wallee-ruby-sdk/api_client.rb +2 -1
  10. data/lib/wallee-ruby-sdk/models/abstract_payment_link_update.rb +15 -15
  11. data/lib/wallee-ruby-sdk/models/bank_account.rb +291 -0
  12. data/lib/wallee-ruby-sdk/models/bank_account_environment.rb +35 -0
  13. data/lib/wallee-ruby-sdk/models/bank_account_state.rb +37 -0
  14. data/lib/wallee-ruby-sdk/models/bank_account_type.rb +227 -0
  15. data/lib/wallee-ruby-sdk/models/bank_transaction.rb +387 -0
  16. data/lib/wallee-ruby-sdk/models/bank_transaction_flow_direction.rb +35 -0
  17. data/lib/wallee-ruby-sdk/models/bank_transaction_source.rb +215 -0
  18. data/lib/wallee-ruby-sdk/models/bank_transaction_state.rb +35 -0
  19. data/lib/wallee-ruby-sdk/models/bank_transaction_type.rb +215 -0
  20. data/lib/wallee-ruby-sdk/models/charge_bank_transaction.rb +291 -0
  21. data/lib/wallee-ruby-sdk/models/currency_bank_account.rb +241 -0
  22. data/lib/wallee-ruby-sdk/models/external_transfer_bank_transaction.rb +251 -0
  23. data/lib/wallee-ruby-sdk/models/internal_transfer_bank_transaction.rb +231 -0
  24. data/lib/wallee-ruby-sdk/models/payment_adjustment.rb +231 -0
  25. data/lib/wallee-ruby-sdk/models/payment_adjustment_type.rb +215 -0
  26. data/lib/wallee-ruby-sdk/models/payment_link.rb +15 -15
  27. data/lib/wallee-ruby-sdk/models/payment_link_active.rb +15 -15
  28. data/lib/wallee-ruby-sdk/models/payment_link_address_handling_mode.rb +36 -0
  29. data/lib/wallee-ruby-sdk/models/payment_link_create.rb +15 -15
  30. data/lib/wallee-ruby-sdk/models/payment_link_update.rb +15 -15
  31. data/lib/wallee-ruby-sdk/models/payment_terminal_address.rb +0 -60
  32. data/lib/wallee-ruby-sdk/models/payment_terminal_location.rb +2 -12
  33. data/lib/wallee-ruby-sdk/models/refund_bank_transaction.rb +281 -0
  34. data/lib/wallee-ruby-sdk/models/refund_recovery_bank_transaction.rb +293 -0
  35. data/lib/wallee-ruby-sdk/models/subscription_ledger_entry.rb +11 -1
  36. data/lib/wallee-ruby-sdk/models/transaction.rb +64 -4
  37. data/lib/wallee-ruby-sdk/version.rb +1 -1
  38. data/test/condition_type_service_test.rb +22 -0
  39. metadata +27 -3
  40. data/lib/wallee-ruby-sdk/models/payment_terminal_contact_address.rb +0 -396
@@ -0,0 +1,231 @@
1
+ =begin
2
+ The wallee API allows an easy interaction with the wallee web service.
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+
16
+ =end
17
+
18
+ require 'date'
19
+
20
+ module Wallee
21
+ #
22
+ class PaymentAdjustment
23
+ #
24
+ attr_accessor :amount_excluding_tax
25
+
26
+ # The total amount of this adjustment including taxes.
27
+ attr_accessor :amount_including_tax
28
+
29
+ # The rate in percentage is the rate on which the adjustment amount was calculated with.
30
+ attr_accessor :rate_in_percentage
31
+
32
+ #
33
+ attr_accessor :tax
34
+
35
+ #
36
+ attr_accessor :type
37
+
38
+ # Attribute mapping from ruby-style variable name to JSON key.
39
+ def self.attribute_map
40
+ {
41
+ :'amount_excluding_tax' => :'amountExcludingTax',
42
+ :'amount_including_tax' => :'amountIncludingTax',
43
+ :'rate_in_percentage' => :'rateInPercentage',
44
+ :'tax' => :'tax',
45
+ :'type' => :'type'
46
+ }
47
+ end
48
+
49
+ # Attribute type mapping.
50
+ def self.swagger_types
51
+ {
52
+ :'amount_excluding_tax' => :'Float',
53
+ :'amount_including_tax' => :'Float',
54
+ :'rate_in_percentage' => :'Float',
55
+ :'tax' => :'Tax',
56
+ :'type' => :'Integer'
57
+ }
58
+ end
59
+
60
+ # Initializes the object
61
+ # @param [Hash] attributes Model attributes in the form of hash
62
+ def initialize(attributes = {})
63
+ return unless attributes.is_a?(Hash)
64
+
65
+ # convert string to symbol for hash key
66
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
67
+
68
+ if attributes.has_key?(:'amountExcludingTax')
69
+ self.amount_excluding_tax = attributes[:'amountExcludingTax']
70
+ end
71
+
72
+ if attributes.has_key?(:'amountIncludingTax')
73
+ self.amount_including_tax = attributes[:'amountIncludingTax']
74
+ end
75
+
76
+ if attributes.has_key?(:'rateInPercentage')
77
+ self.rate_in_percentage = attributes[:'rateInPercentage']
78
+ end
79
+
80
+ if attributes.has_key?(:'tax')
81
+ self.tax = attributes[:'tax']
82
+ end
83
+
84
+ if attributes.has_key?(:'type')
85
+ self.type = attributes[:'type']
86
+ end
87
+ end
88
+
89
+ # Show invalid properties with the reasons. Usually used together with valid?
90
+ # @return Array for valid properties with the reasons
91
+ def list_invalid_properties
92
+ invalid_properties = Array.new
93
+ invalid_properties
94
+ end
95
+
96
+ # Check to see if the all the properties in the model are valid
97
+ # @return true if the model is valid
98
+ def valid?
99
+ true
100
+ end
101
+
102
+ # Checks equality by comparing each attribute.
103
+ # @param [Object] Object to be compared
104
+ def ==(o)
105
+ return true if self.equal?(o)
106
+ self.class == o.class &&
107
+ amount_excluding_tax == o.amount_excluding_tax &&
108
+ amount_including_tax == o.amount_including_tax &&
109
+ rate_in_percentage == o.rate_in_percentage &&
110
+ tax == o.tax &&
111
+ type == o.type
112
+ end
113
+
114
+ # @see the `==` method
115
+ # @param [Object] Object to be compared
116
+ def eql?(o)
117
+ self == o
118
+ end
119
+
120
+ # Calculates hash code according to all attributes.
121
+ # @return [Fixnum] Hash code
122
+ def hash
123
+ [amount_excluding_tax, amount_including_tax, rate_in_percentage, tax, type].hash
124
+ end
125
+
126
+ # Builds the object from hash
127
+ # @param [Hash] attributes Model attributes in the form of hash
128
+ # @return [Object] Returns the model itself
129
+ def build_from_hash(attributes)
130
+ return nil unless attributes.is_a?(Hash)
131
+ self.class.swagger_types.each_pair do |key, type|
132
+ if type =~ /\AArray<(.*)>/i
133
+ # check to ensure the input is an array given that the attribute
134
+ # is documented as an array but the input is not
135
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
136
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
137
+ end
138
+ elsif !attributes[self.class.attribute_map[key]].nil?
139
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
140
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
141
+ end
142
+
143
+ self
144
+ end
145
+
146
+ # Deserializes the data based on type
147
+ # @param string type Data type
148
+ # @param string value Value to be deserialized
149
+ # @return [Object] Deserialized data
150
+ def _deserialize(type, value)
151
+ case type.to_sym
152
+ when :DateTime
153
+ DateTime.parse(value)
154
+ when :Date
155
+ Date.parse(value)
156
+ when :String
157
+ value.to_s
158
+ when :Integer
159
+ value.to_i
160
+ when :Float
161
+ value.to_f
162
+ when :BOOLEAN
163
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
164
+ true
165
+ else
166
+ false
167
+ end
168
+ when :Object
169
+ # generic object (usually a Hash), return directly
170
+ value
171
+ when /\AArray<(?<inner_type>.+)>\z/
172
+ inner_type = Regexp.last_match[:inner_type]
173
+ value.map { |v| _deserialize(inner_type, v) }
174
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
175
+ k_type = Regexp.last_match[:k_type]
176
+ v_type = Regexp.last_match[:v_type]
177
+ {}.tap do |hash|
178
+ value.each do |k, v|
179
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
180
+ end
181
+ end
182
+ else # model
183
+ temp_model = Wallee.const_get(type).new
184
+ temp_model.build_from_hash(value)
185
+ end
186
+ end
187
+
188
+ # Returns the string representation of the object
189
+ # @return [String] String presentation of the object
190
+ def to_s
191
+ to_hash.to_s
192
+ end
193
+
194
+ # to_body is an alias to to_hash (backward compatibility)
195
+ # @return [Hash] Returns the object in the form of hash
196
+ def to_body
197
+ to_hash
198
+ end
199
+
200
+ # Returns the object in the form of hash
201
+ # @return [Hash] Returns the object in the form of hash
202
+ def to_hash
203
+ hash = {}
204
+ self.class.attribute_map.each_pair do |attr, param|
205
+ value = self.send(attr)
206
+ next if value.nil?
207
+ hash[param] = _to_hash(value)
208
+ end
209
+ hash
210
+ end
211
+
212
+ # Outputs non-array value in the form of hash
213
+ # For object, use to_hash. Otherwise, just return the value
214
+ # @param [Object] value Any valid value
215
+ # @return [Hash] Returns the value in the form of hash
216
+ def _to_hash(value)
217
+ if value.is_a?(Array)
218
+ value.compact.map{ |v| _to_hash(v) }
219
+ elsif value.is_a?(Hash)
220
+ {}.tap do |hash|
221
+ value.each { |k, v| hash[k] = _to_hash(v) }
222
+ end
223
+ elsif value.respond_to? :to_hash
224
+ value.to_hash
225
+ else
226
+ value
227
+ end
228
+ end
229
+
230
+ end
231
+ end
@@ -0,0 +1,215 @@
1
+ =begin
2
+ The wallee API allows an easy interaction with the wallee web service.
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+
16
+ =end
17
+
18
+ require 'date'
19
+
20
+ module Wallee
21
+ #
22
+ class PaymentAdjustmentType
23
+ #
24
+ attr_accessor :description
25
+
26
+ # The ID is the primary key of the entity. The ID identifies the entity uniquely.
27
+ attr_accessor :id
28
+
29
+ #
30
+ attr_accessor :name
31
+
32
+ # Attribute mapping from ruby-style variable name to JSON key.
33
+ def self.attribute_map
34
+ {
35
+ :'description' => :'description',
36
+ :'id' => :'id',
37
+ :'name' => :'name'
38
+ }
39
+ end
40
+
41
+ # Attribute type mapping.
42
+ def self.swagger_types
43
+ {
44
+ :'description' => :'Hash<String, String>',
45
+ :'id' => :'Integer',
46
+ :'name' => :'Hash<String, String>'
47
+ }
48
+ end
49
+
50
+ # Initializes the object
51
+ # @param [Hash] attributes Model attributes in the form of hash
52
+ def initialize(attributes = {})
53
+ return unless attributes.is_a?(Hash)
54
+
55
+ # convert string to symbol for hash key
56
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
57
+
58
+ if attributes.has_key?(:'description')
59
+ if (value = attributes[:'description']).is_a?(Hash)
60
+ self.description = value
61
+ end
62
+ end
63
+
64
+ if attributes.has_key?(:'id')
65
+ self.id = attributes[:'id']
66
+ end
67
+
68
+ if attributes.has_key?(:'name')
69
+ if (value = attributes[:'name']).is_a?(Hash)
70
+ self.name = value
71
+ end
72
+ end
73
+ end
74
+
75
+ # Show invalid properties with the reasons. Usually used together with valid?
76
+ # @return Array for valid properties with the reasons
77
+ def list_invalid_properties
78
+ invalid_properties = Array.new
79
+ invalid_properties
80
+ end
81
+
82
+ # Check to see if the all the properties in the model are valid
83
+ # @return true if the model is valid
84
+ def valid?
85
+ true
86
+ end
87
+
88
+ # Checks equality by comparing each attribute.
89
+ # @param [Object] Object to be compared
90
+ def ==(o)
91
+ return true if self.equal?(o)
92
+ self.class == o.class &&
93
+ description == o.description &&
94
+ id == o.id &&
95
+ name == o.name
96
+ end
97
+
98
+ # @see the `==` method
99
+ # @param [Object] Object to be compared
100
+ def eql?(o)
101
+ self == o
102
+ end
103
+
104
+ # Calculates hash code according to all attributes.
105
+ # @return [Fixnum] Hash code
106
+ def hash
107
+ [description, id, name].hash
108
+ end
109
+
110
+ # Builds the object from hash
111
+ # @param [Hash] attributes Model attributes in the form of hash
112
+ # @return [Object] Returns the model itself
113
+ def build_from_hash(attributes)
114
+ return nil unless attributes.is_a?(Hash)
115
+ self.class.swagger_types.each_pair do |key, type|
116
+ if type =~ /\AArray<(.*)>/i
117
+ # check to ensure the input is an array given that the attribute
118
+ # is documented as an array but the input is not
119
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
120
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
121
+ end
122
+ elsif !attributes[self.class.attribute_map[key]].nil?
123
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
124
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
125
+ end
126
+
127
+ self
128
+ end
129
+
130
+ # Deserializes the data based on type
131
+ # @param string type Data type
132
+ # @param string value Value to be deserialized
133
+ # @return [Object] Deserialized data
134
+ def _deserialize(type, value)
135
+ case type.to_sym
136
+ when :DateTime
137
+ DateTime.parse(value)
138
+ when :Date
139
+ Date.parse(value)
140
+ when :String
141
+ value.to_s
142
+ when :Integer
143
+ value.to_i
144
+ when :Float
145
+ value.to_f
146
+ when :BOOLEAN
147
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
148
+ true
149
+ else
150
+ false
151
+ end
152
+ when :Object
153
+ # generic object (usually a Hash), return directly
154
+ value
155
+ when /\AArray<(?<inner_type>.+)>\z/
156
+ inner_type = Regexp.last_match[:inner_type]
157
+ value.map { |v| _deserialize(inner_type, v) }
158
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
159
+ k_type = Regexp.last_match[:k_type]
160
+ v_type = Regexp.last_match[:v_type]
161
+ {}.tap do |hash|
162
+ value.each do |k, v|
163
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
164
+ end
165
+ end
166
+ else # model
167
+ temp_model = Wallee.const_get(type).new
168
+ temp_model.build_from_hash(value)
169
+ end
170
+ end
171
+
172
+ # Returns the string representation of the object
173
+ # @return [String] String presentation of the object
174
+ def to_s
175
+ to_hash.to_s
176
+ end
177
+
178
+ # to_body is an alias to to_hash (backward compatibility)
179
+ # @return [Hash] Returns the object in the form of hash
180
+ def to_body
181
+ to_hash
182
+ end
183
+
184
+ # Returns the object in the form of hash
185
+ # @return [Hash] Returns the object in the form of hash
186
+ def to_hash
187
+ hash = {}
188
+ self.class.attribute_map.each_pair do |attr, param|
189
+ value = self.send(attr)
190
+ next if value.nil?
191
+ hash[param] = _to_hash(value)
192
+ end
193
+ hash
194
+ end
195
+
196
+ # Outputs non-array value in the form of hash
197
+ # For object, use to_hash. Otherwise, just return the value
198
+ # @param [Object] value Any valid value
199
+ # @return [Hash] Returns the value in the form of hash
200
+ def _to_hash(value)
201
+ if value.is_a?(Array)
202
+ value.compact.map{ |v| _to_hash(v) }
203
+ elsif value.is_a?(Hash)
204
+ {}.tap do |hash|
205
+ value.each { |k, v| hash[k] = _to_hash(v) }
206
+ end
207
+ elsif value.respond_to? :to_hash
208
+ value.to_hash
209
+ else
210
+ value
211
+ end
212
+ end
213
+
214
+ end
215
+ end
@@ -32,8 +32,8 @@ module Wallee
32
32
  # The available from date defines the latest date on which the payment link can be used to initialize a transaction. When no date is specified there will be no restriction.
33
33
  attr_accessor :available_until
34
34
 
35
- # By making the billing address required the transaction can only be created when a billing address is provided within the request.
36
- attr_accessor :billing_address_required
35
+ # The billing address handling mode controls if the address is collected or not and how it is collected.
36
+ attr_accessor :billing_address_handling_mode
37
37
 
38
38
  # The currency defines in which currency the payment is executed in. If no currency is defined it has to be specified within the request parameter 'currency'.
39
39
  attr_accessor :currency
@@ -65,8 +65,8 @@ module Wallee
65
65
  # The protection mode determines if the payment link is protected against tampering and in what way.
66
66
  attr_accessor :protection_mode
67
67
 
68
- # By making the shipping address required the transaction can only be created when a shipping address is provided within the request.
69
- attr_accessor :shipping_address_required
68
+ # The shipping address handling mode controls if the address is collected or not and how it is collected.
69
+ attr_accessor :shipping_address_handling_mode
70
70
 
71
71
  #
72
72
  attr_accessor :state
@@ -84,7 +84,7 @@ module Wallee
84
84
  :'applied_space_view' => :'appliedSpaceView',
85
85
  :'available_from' => :'availableFrom',
86
86
  :'available_until' => :'availableUntil',
87
- :'billing_address_required' => :'billingAddressRequired',
87
+ :'billing_address_handling_mode' => :'billingAddressHandlingMode',
88
88
  :'currency' => :'currency',
89
89
  :'external_id' => :'externalId',
90
90
  :'id' => :'id',
@@ -95,7 +95,7 @@ module Wallee
95
95
  :'name' => :'name',
96
96
  :'planned_purge_date' => :'plannedPurgeDate',
97
97
  :'protection_mode' => :'protectionMode',
98
- :'shipping_address_required' => :'shippingAddressRequired',
98
+ :'shipping_address_handling_mode' => :'shippingAddressHandlingMode',
99
99
  :'state' => :'state',
100
100
  :'url' => :'url',
101
101
  :'version' => :'version'
@@ -109,7 +109,7 @@ module Wallee
109
109
  :'applied_space_view' => :'Integer',
110
110
  :'available_from' => :'DateTime',
111
111
  :'available_until' => :'DateTime',
112
- :'billing_address_required' => :'BOOLEAN',
112
+ :'billing_address_handling_mode' => :'PaymentLinkAddressHandlingMode',
113
113
  :'currency' => :'String',
114
114
  :'external_id' => :'String',
115
115
  :'id' => :'Integer',
@@ -120,7 +120,7 @@ module Wallee
120
120
  :'name' => :'String',
121
121
  :'planned_purge_date' => :'DateTime',
122
122
  :'protection_mode' => :'PaymentLinkProtectionMode',
123
- :'shipping_address_required' => :'BOOLEAN',
123
+ :'shipping_address_handling_mode' => :'PaymentLinkAddressHandlingMode',
124
124
  :'state' => :'CreationEntityState',
125
125
  :'url' => :'String',
126
126
  :'version' => :'Integer'
@@ -153,8 +153,8 @@ module Wallee
153
153
  self.available_until = attributes[:'availableUntil']
154
154
  end
155
155
 
156
- if attributes.has_key?(:'billingAddressRequired')
157
- self.billing_address_required = attributes[:'billingAddressRequired']
156
+ if attributes.has_key?(:'billingAddressHandlingMode')
157
+ self.billing_address_handling_mode = attributes[:'billingAddressHandlingMode']
158
158
  end
159
159
 
160
160
  if attributes.has_key?(:'currency')
@@ -199,8 +199,8 @@ module Wallee
199
199
  self.protection_mode = attributes[:'protectionMode']
200
200
  end
201
201
 
202
- if attributes.has_key?(:'shippingAddressRequired')
203
- self.shipping_address_required = attributes[:'shippingAddressRequired']
202
+ if attributes.has_key?(:'shippingAddressHandlingMode')
203
+ self.shipping_address_handling_mode = attributes[:'shippingAddressHandlingMode']
204
204
  end
205
205
 
206
206
  if attributes.has_key?(:'state')
@@ -277,7 +277,7 @@ module Wallee
277
277
  applied_space_view == o.applied_space_view &&
278
278
  available_from == o.available_from &&
279
279
  available_until == o.available_until &&
280
- billing_address_required == o.billing_address_required &&
280
+ billing_address_handling_mode == o.billing_address_handling_mode &&
281
281
  currency == o.currency &&
282
282
  external_id == o.external_id &&
283
283
  id == o.id &&
@@ -288,7 +288,7 @@ module Wallee
288
288
  name == o.name &&
289
289
  planned_purge_date == o.planned_purge_date &&
290
290
  protection_mode == o.protection_mode &&
291
- shipping_address_required == o.shipping_address_required &&
291
+ shipping_address_handling_mode == o.shipping_address_handling_mode &&
292
292
  state == o.state &&
293
293
  url == o.url &&
294
294
  version == o.version
@@ -303,7 +303,7 @@ module Wallee
303
303
  # Calculates hash code according to all attributes.
304
304
  # @return [Fixnum] Hash code
305
305
  def hash
306
- [allowed_payment_method_configurations, applied_space_view, available_from, available_until, billing_address_required, currency, external_id, id, language, line_items, linked_space_id, maximal_number_of_transactions, name, planned_purge_date, protection_mode, shipping_address_required, state, url, version].hash
306
+ [allowed_payment_method_configurations, applied_space_view, available_from, available_until, billing_address_handling_mode, currency, external_id, id, language, line_items, linked_space_id, maximal_number_of_transactions, name, planned_purge_date, protection_mode, shipping_address_handling_mode, state, url, version].hash
307
307
  end
308
308
 
309
309
  # Builds the object from hash