wallee-ruby-sdk 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (132) hide show
  1. checksums.yaml +5 -5
  2. data/README.md +21 -11
  3. data/lib/wallee-ruby-sdk/models/abstract_debt_collection_case_update.rb +270 -0
  4. data/lib/wallee-ruby-sdk/models/abstract_payment_link_update.rb +302 -0
  5. data/lib/wallee-ruby-sdk/models/abstract_subscription_affiliate_update.rb +230 -0
  6. data/lib/wallee-ruby-sdk/models/abstract_transaction_pending.rb +14 -4
  7. data/lib/wallee-ruby-sdk/models/criteria_operator.rb +1 -0
  8. data/lib/wallee-ruby-sdk/models/debt_collection_case.rb +502 -0
  9. data/lib/wallee-ruby-sdk/models/debt_collection_case_create.rb +310 -0
  10. data/lib/wallee-ruby-sdk/models/debt_collection_case_document.rb +300 -0
  11. data/lib/wallee-ruby-sdk/models/debt_collection_case_source.rb +232 -0
  12. data/lib/wallee-ruby-sdk/models/debt_collection_case_state.rb +48 -0
  13. data/lib/wallee-ruby-sdk/models/debt_collection_case_update.rb +300 -0
  14. data/lib/wallee-ruby-sdk/models/debt_collection_environment.rb +43 -0
  15. data/lib/wallee-ruby-sdk/models/debt_collection_receipt.rb +288 -0
  16. data/lib/wallee-ruby-sdk/models/debt_collection_receipt_source.rb +222 -0
  17. data/lib/wallee-ruby-sdk/models/debt_collector.rb +222 -0
  18. data/lib/wallee-ruby-sdk/models/debt_collector_condition.rb +258 -0
  19. data/lib/wallee-ruby-sdk/models/debt_collector_condition_type.rb +222 -0
  20. data/lib/wallee-ruby-sdk/models/debt_collector_configuration.rb +302 -0
  21. data/lib/wallee-ruby-sdk/models/document_template_type.rb +1 -11
  22. data/lib/wallee-ruby-sdk/models/entity_export_request.rb +215 -0
  23. data/lib/wallee-ruby-sdk/models/entity_query.rb +1 -1
  24. data/lib/wallee-ruby-sdk/models/entity_query_order_by.rb +10 -0
  25. data/lib/wallee-ruby-sdk/models/environment.rb +43 -0
  26. data/lib/wallee-ruby-sdk/models/metric_usage.rb +232 -0
  27. data/lib/wallee-ruby-sdk/models/payment_connector.rb +23 -1
  28. data/lib/wallee-ruby-sdk/models/payment_contract.rb +338 -0
  29. data/lib/wallee-ruby-sdk/models/payment_contract_state.rb +46 -0
  30. data/lib/wallee-ruby-sdk/models/payment_contract_type.rb +232 -0
  31. data/lib/wallee-ruby-sdk/models/payment_link.rb +382 -0
  32. data/lib/wallee-ruby-sdk/models/payment_link_active.rb +342 -0
  33. data/lib/wallee-ruby-sdk/models/payment_link_create.rb +337 -0
  34. data/lib/wallee-ruby-sdk/models/payment_link_protection_mode.rb +43 -0
  35. data/lib/wallee-ruby-sdk/models/payment_link_update.rb +332 -0
  36. data/lib/wallee-ruby-sdk/models/payment_method.rb +13 -1
  37. data/lib/wallee-ruby-sdk/models/payment_processor_configuration.rb +11 -1
  38. data/lib/wallee-ruby-sdk/models/refund.rb +11 -1
  39. data/lib/wallee-ruby-sdk/models/rest_address_format.rb +234 -0
  40. data/lib/wallee-ruby-sdk/models/rest_address_format_field.rb +51 -0
  41. data/lib/wallee-ruby-sdk/models/rest_country.rb +11 -1
  42. data/lib/wallee-ruby-sdk/models/subscription.rb +11 -1
  43. data/lib/wallee-ruby-sdk/models/subscription_affiliate.rb +290 -0
  44. data/lib/wallee-ruby-sdk/models/subscription_affiliate_create.rb +255 -0
  45. data/lib/wallee-ruby-sdk/models/subscription_affiliate_deleted.rb +290 -0
  46. data/lib/wallee-ruby-sdk/models/subscription_affiliate_deleting.rb +290 -0
  47. data/lib/wallee-ruby-sdk/models/subscription_affiliate_inactive.rb +260 -0
  48. data/lib/wallee-ruby-sdk/models/subscription_affiliate_update.rb +260 -0
  49. data/lib/wallee-ruby-sdk/models/subscription_change_request.rb +2 -2
  50. data/lib/wallee-ruby-sdk/models/subscription_create_request.rb +2 -2
  51. data/lib/wallee-ruby-sdk/models/subscription_pending.rb +11 -1
  52. data/lib/wallee-ruby-sdk/models/tokenizationn_mode.rb +44 -0
  53. data/lib/wallee-ruby-sdk/models/transaction.rb +63 -3
  54. data/lib/wallee-ruby-sdk/models/transaction_create.rb +41 -1
  55. data/lib/wallee-ruby-sdk/models/transaction_environment_selection_strategy.rb +43 -0
  56. data/lib/wallee-ruby-sdk/models/transaction_invoice.rb +11 -1
  57. data/lib/wallee-ruby-sdk/models/transaction_pending.rb +11 -1
  58. data/lib/wallee-ruby-sdk/models/unencrypted_card_data.rb +228 -0
  59. data/lib/wallee-ruby-sdk/models/unencrypted_card_data_create.rb +233 -0
  60. data/lib/wallee-ruby-sdk/models/webhook_listener_entity.rb +1 -11
  61. data/lib/wallee-ruby-sdk/services/account_service_api.rb +2 -2
  62. data/lib/wallee-ruby-sdk/services/application_user_service_api.rb +2 -2
  63. data/lib/wallee-ruby-sdk/services/card_processing_service_api.rb +176 -0
  64. data/lib/wallee-ruby-sdk/services/charge_attempt_service_api.rb +2 -2
  65. data/lib/wallee-ruby-sdk/services/charge_flow_level_service_api.rb +4 -4
  66. data/lib/wallee-ruby-sdk/services/charge_flow_service_api.rb +6 -6
  67. data/lib/wallee-ruby-sdk/services/condition_type_service_api.rb +4 -4
  68. data/lib/wallee-ruby-sdk/services/country_service_api.rb +2 -2
  69. data/lib/wallee-ruby-sdk/services/country_state_service_api.rb +4 -4
  70. data/lib/wallee-ruby-sdk/services/currency_service_api.rb +2 -2
  71. data/lib/wallee-ruby-sdk/services/debt_collection_case_service_api.rb +800 -0
  72. data/lib/wallee-ruby-sdk/services/debt_collector_configuration_service_api.rb +217 -0
  73. data/lib/wallee-ruby-sdk/services/debt_collector_service_api.rb +143 -0
  74. data/lib/wallee-ruby-sdk/services/delivery_indication_service_api.rb +6 -6
  75. data/lib/wallee-ruby-sdk/services/document_template_service_api.rb +2 -2
  76. data/lib/wallee-ruby-sdk/services/document_template_type_service_api.rb +4 -4
  77. data/lib/wallee-ruby-sdk/services/human_user_service_api.rb +59 -2
  78. data/lib/wallee-ruby-sdk/services/installment_payment_service_api.rb +4 -4
  79. data/lib/wallee-ruby-sdk/services/installment_payment_slice_service_api.rb +2 -2
  80. data/lib/wallee-ruby-sdk/services/installment_plan_calculation_service_api.rb +2 -2
  81. data/lib/wallee-ruby-sdk/services/installment_plan_configuration_service_api.rb +2 -2
  82. data/lib/wallee-ruby-sdk/services/installment_plan_slice_configuration_service_api.rb +2 -2
  83. data/lib/wallee-ruby-sdk/services/label_description_group_service_api.rb +4 -4
  84. data/lib/wallee-ruby-sdk/services/label_description_service_api.rb +4 -4
  85. data/lib/wallee-ruby-sdk/services/language_service_api.rb +2 -2
  86. data/lib/wallee-ruby-sdk/services/legal_organization_form_service_api.rb +201 -0
  87. data/lib/wallee-ruby-sdk/services/manual_task_service_api.rb +2 -2
  88. data/lib/wallee-ruby-sdk/services/mertic_usage_service_api.rb +100 -0
  89. data/lib/wallee-ruby-sdk/services/payment_connector_configuration_service_api.rb +2 -2
  90. data/lib/wallee-ruby-sdk/services/payment_connector_service_api.rb +4 -4
  91. data/lib/wallee-ruby-sdk/services/payment_link_service_api.rb +402 -0
  92. data/lib/wallee-ruby-sdk/services/payment_method_configuration_service_api.rb +2 -2
  93. data/lib/wallee-ruby-sdk/services/payment_method_service_api.rb +4 -4
  94. data/lib/wallee-ruby-sdk/services/payment_processor_configuration_service_api.rb +2 -2
  95. data/lib/wallee-ruby-sdk/services/payment_processor_service_api.rb +4 -4
  96. data/lib/wallee-ruby-sdk/services/permission_service_api.rb +4 -4
  97. data/lib/wallee-ruby-sdk/services/refund_service_api.rb +10 -10
  98. data/lib/wallee-ruby-sdk/services/space_service_api.rb +2 -2
  99. data/lib/wallee-ruby-sdk/services/static_value_service_api.rb +4 -4
  100. data/lib/wallee-ruby-sdk/services/subscriber_service_api.rb +2 -2
  101. data/lib/wallee-ruby-sdk/services/subscription_affiliate_service_api.rb +402 -0
  102. data/lib/wallee-ruby-sdk/services/subscription_charge_service_api.rb +4 -4
  103. data/lib/wallee-ruby-sdk/services/subscription_ledger_entry_service_api.rb +2 -2
  104. data/lib/wallee-ruby-sdk/services/subscription_metric_service_api.rb +2 -2
  105. data/lib/wallee-ruby-sdk/services/subscription_metric_usage_service_api.rb +2 -2
  106. data/lib/wallee-ruby-sdk/services/subscription_period_bill_service_api.rb +2 -2
  107. data/lib/wallee-ruby-sdk/services/subscription_product_component_group_service_api.rb +2 -2
  108. data/lib/wallee-ruby-sdk/services/subscription_product_component_service_api.rb +2 -2
  109. data/lib/wallee-ruby-sdk/services/subscription_product_fee_tier_service_api.rb +2 -2
  110. data/lib/wallee-ruby-sdk/services/subscription_product_metered_fee_service_api.rb +2 -2
  111. data/lib/wallee-ruby-sdk/services/subscription_product_period_fee_service_api.rb +2 -2
  112. data/lib/wallee-ruby-sdk/services/subscription_product_retirement_service_api.rb +2 -2
  113. data/lib/wallee-ruby-sdk/services/subscription_product_service_api.rb +2 -2
  114. data/lib/wallee-ruby-sdk/services/subscription_product_setup_fee_service_api.rb +2 -2
  115. data/lib/wallee-ruby-sdk/services/subscription_product_version_retirement_service_api.rb +2 -2
  116. data/lib/wallee-ruby-sdk/services/subscription_product_version_service_api.rb +2 -2
  117. data/lib/wallee-ruby-sdk/services/subscription_service_api.rb +12 -12
  118. data/lib/wallee-ruby-sdk/services/subscription_suspension_service_api.rb +2 -2
  119. data/lib/wallee-ruby-sdk/services/subscription_version_service_api.rb +2 -2
  120. data/lib/wallee-ruby-sdk/services/token_service_api.rb +2 -2
  121. data/lib/wallee-ruby-sdk/services/token_version_service_api.rb +4 -4
  122. data/lib/wallee-ruby-sdk/services/transaction_completion_service_api.rb +6 -6
  123. data/lib/wallee-ruby-sdk/services/transaction_invoice_service_api.rb +6 -6
  124. data/lib/wallee-ruby-sdk/services/transaction_service_api.rb +143 -18
  125. data/lib/wallee-ruby-sdk/services/transaction_void_service_api.rb +6 -6
  126. data/lib/wallee-ruby-sdk/services/user_account_role_service_api.rb +6 -6
  127. data/lib/wallee-ruby-sdk/services/user_space_role_service_api.rb +9 -9
  128. data/lib/wallee-ruby-sdk/services/webhook_listener_service_api.rb +2 -2
  129. data/lib/wallee-ruby-sdk/services/webhook_url_service_api.rb +2 -2
  130. data/lib/wallee-ruby-sdk/version.rb +1 -1
  131. data/lib/wallee-ruby-sdk.rb +47 -0
  132. metadata +50 -3
@@ -0,0 +1,260 @@
1
+ =begin
2
+ Wallee API: 1.0.0
3
+
4
+ The wallee API allows an easy interaction with the wallee web service.
5
+
6
+
7
+
8
+ Licensed under the Apache License, Version 2.0 (the "License");
9
+ you may not use this file except in compliance with the License.
10
+ You may obtain a copy of the License at
11
+
12
+ http://www.apache.org/licenses/LICENSE-2.0
13
+
14
+ Unless required by applicable law or agreed to in writing, software
15
+ distributed under the License is distributed on an "AS IS" BASIS,
16
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
+ See the License for the specific language governing permissions and
18
+ limitations under the License.
19
+
20
+ =end
21
+
22
+ require 'date'
23
+
24
+ module Wallee
25
+ #
26
+ class SubscriptionAffiliateUpdate
27
+ # The ID is the primary key of the entity. The ID identifies the entity uniquely.
28
+ attr_accessor :id
29
+
30
+ # The version number indicates the version of the entity. The version is incremented whenever the entity is changed.
31
+ attr_accessor :version
32
+
33
+ #
34
+ attr_accessor :language
35
+
36
+ # Meta data allow to store additional data along the object.
37
+ attr_accessor :meta_data
38
+
39
+ #
40
+ attr_accessor :name
41
+
42
+ #
43
+ attr_accessor :state
44
+
45
+
46
+ # Attribute mapping from ruby-style variable name to JSON key.
47
+ def self.attribute_map
48
+ {
49
+ :'id' => :'id',
50
+ :'version' => :'version',
51
+ :'language' => :'language',
52
+ :'meta_data' => :'metaData',
53
+ :'name' => :'name',
54
+ :'state' => :'state'
55
+ }
56
+ end
57
+
58
+ # Attribute type mapping.
59
+ def self.swagger_types
60
+ {
61
+ :'id' => :'Integer',
62
+ :'version' => :'Integer',
63
+ :'language' => :'String',
64
+ :'meta_data' => :'Hash<String, String>',
65
+ :'name' => :'String',
66
+ :'state' => :'CreationEntityState'
67
+ }
68
+ end
69
+
70
+ # Initializes the object
71
+ # @param [Hash] attributes Model attributes in the form of hash
72
+ def initialize(attributes = {})
73
+ return unless attributes.is_a?(Hash)
74
+
75
+ # convert string to symbol for hash key
76
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
77
+
78
+ if attributes.has_key?(:'id')
79
+ self.id = attributes[:'id']
80
+ end
81
+
82
+ if attributes.has_key?(:'version')
83
+ self.version = attributes[:'version']
84
+ end
85
+
86
+ if attributes.has_key?(:'language')
87
+ self.language = attributes[:'language']
88
+ end
89
+
90
+ if attributes.has_key?(:'metaData')
91
+ if (value = attributes[:'metaData']).is_a?(Array)
92
+ self.meta_data = value
93
+ end
94
+ end
95
+
96
+ if attributes.has_key?(:'name')
97
+ self.name = attributes[:'name']
98
+ end
99
+
100
+ if attributes.has_key?(:'state')
101
+ self.state = attributes[:'state']
102
+ end
103
+
104
+ end
105
+
106
+ # Show invalid properties with the reasons. Usually used together with valid?
107
+ # @return Array for valid properies with the reasons
108
+ def list_invalid_properties
109
+ invalid_properties = Array.new
110
+ if @id.nil?
111
+ invalid_properties.push("invalid value for 'id', id cannot be nil.")
112
+ end
113
+
114
+ if @version.nil?
115
+ invalid_properties.push("invalid value for 'version', version cannot be nil.")
116
+ end
117
+
118
+ return invalid_properties
119
+ end
120
+
121
+ # Check to see if the all the properties in the model are valid
122
+ # @return true if the model is valid
123
+ def valid?
124
+ return false if @id.nil?
125
+ return false if @version.nil?
126
+ return true
127
+ end
128
+
129
+ # Checks equality by comparing each attribute.
130
+ # @param [Object] Object to be compared
131
+ def ==(o)
132
+ return true if self.equal?(o)
133
+ self.class == o.class &&
134
+ id == o.id &&
135
+ version == o.version &&
136
+ language == o.language &&
137
+ meta_data == o.meta_data &&
138
+ name == o.name &&
139
+ state == o.state
140
+ end
141
+
142
+ # @see the `==` method
143
+ # @param [Object] Object to be compared
144
+ def eql?(o)
145
+ self == o
146
+ end
147
+
148
+ # Calculates hash code according to all attributes.
149
+ # @return [Fixnum] Hash code
150
+ def hash
151
+ [id, version, language, meta_data, name, state].hash
152
+ end
153
+
154
+ # Builds the object from hash
155
+ # @param [Hash] attributes Model attributes in the form of hash
156
+ # @return [Object] Returns the model itself
157
+ def build_from_hash(attributes)
158
+ return nil unless attributes.is_a?(Hash)
159
+ self.class.swagger_types.each_pair do |key, type|
160
+ if type =~ /\AArray<(.*)>/i
161
+ # check to ensure the input is an array given that the the attribute
162
+ # is documented as an array but the input is not
163
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
164
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
165
+ end
166
+ elsif !attributes[self.class.attribute_map[key]].nil?
167
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
168
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
169
+ end
170
+
171
+ self
172
+ end
173
+
174
+ # Deserializes the data based on type
175
+ # @param string type Data type
176
+ # @param string value Value to be deserialized
177
+ # @return [Object] Deserialized data
178
+ def _deserialize(type, value)
179
+ case type.to_sym
180
+ when :DateTime
181
+ DateTime.parse(value)
182
+ when :Date
183
+ Date.parse(value)
184
+ when :String
185
+ value.to_s
186
+ when :Integer
187
+ value.to_i
188
+ when :Float
189
+ value.to_f
190
+ when :BOOLEAN
191
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
192
+ true
193
+ else
194
+ false
195
+ end
196
+ when :Object
197
+ # generic object (usually a Hash), return directly
198
+ value
199
+ when /\AArray<(?<inner_type>.+)>\z/
200
+ inner_type = Regexp.last_match[:inner_type]
201
+ value.map { |v| _deserialize(inner_type, v) }
202
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
203
+ k_type = Regexp.last_match[:k_type]
204
+ v_type = Regexp.last_match[:v_type]
205
+ {}.tap do |hash|
206
+ value.each do |k, v|
207
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
208
+ end
209
+ end
210
+ else # model
211
+ temp_model = Wallee.const_get(type).new
212
+ temp_model.build_from_hash(value)
213
+ end
214
+ end
215
+
216
+ # Returns the string representation of the object
217
+ # @return [String] String presentation of the object
218
+ def to_s
219
+ to_hash.to_s
220
+ end
221
+
222
+ # to_body is an alias to to_hash (backward compatibility)
223
+ # @return [Hash] Returns the object in the form of hash
224
+ def to_body
225
+ to_hash
226
+ end
227
+
228
+ # Returns the object in the form of hash
229
+ # @return [Hash] Returns the object in the form of hash
230
+ def to_hash
231
+ hash = {}
232
+ self.class.attribute_map.each_pair do |attr, param|
233
+ value = self.send(attr)
234
+ next if value.nil?
235
+ hash[param] = _to_hash(value)
236
+ end
237
+ hash
238
+ end
239
+
240
+ # Outputs non-array value in the form of hash
241
+ # For object, use to_hash. Otherwise, just return the value
242
+ # @param [Object] value Any valid value
243
+ # @return [Hash] Returns the value in the form of hash
244
+ def _to_hash(value)
245
+ if value.is_a?(Array)
246
+ value.compact.map{ |v| _to_hash(v) }
247
+ elsif value.is_a?(Hash)
248
+ {}.tap do |hash|
249
+ value.each { |k, v| hash[k] = _to_hash(v) }
250
+ end
251
+ elsif value.respond_to? :to_hash
252
+ value.to_hash
253
+ else
254
+ value
255
+ end
256
+ end
257
+
258
+ end
259
+
260
+ end
@@ -55,10 +55,10 @@ module Wallee
55
55
  def self.swagger_types
56
56
  {
57
57
  :'currency' => :'String',
58
- :'product' => :'SubscriptionProduct',
58
+ :'product' => :'Integer',
59
59
  :'respect_termination_period' => :'BOOLEAN',
60
60
  :'selected_components' => :'Array<SubscriptionProductComponentReference>',
61
- :'subscription' => :'Subscription'
61
+ :'subscription' => :'Integer'
62
62
  }
63
63
  end
64
64
 
@@ -51,9 +51,9 @@ module Wallee
51
51
  def self.swagger_types
52
52
  {
53
53
  :'currency' => :'String',
54
- :'product' => :'SubscriptionProduct',
54
+ :'product' => :'Integer',
55
55
  :'selected_components' => :'Array<SubscriptionProductComponentReference>',
56
- :'subscription' => :'SubscriptionPending'
56
+ :'subscription' => :'Integer'
57
57
  }
58
58
  end
59
59
 
@@ -36,6 +36,9 @@ module Wallee
36
36
  #
37
37
  attr_accessor :planned_termination_date
38
38
 
39
+ #
40
+ attr_accessor :affiliate
41
+
39
42
  #
40
43
  attr_accessor :reference
41
44
 
@@ -53,6 +56,7 @@ module Wallee
53
56
  :'version' => :'version',
54
57
  :'description' => :'description',
55
58
  :'planned_termination_date' => :'plannedTerminationDate',
59
+ :'affiliate' => :'affiliate',
56
60
  :'reference' => :'reference',
57
61
  :'subscriber' => :'subscriber',
58
62
  :'token' => :'token'
@@ -66,6 +70,7 @@ module Wallee
66
70
  :'version' => :'Integer',
67
71
  :'description' => :'String',
68
72
  :'planned_termination_date' => :'DateTime',
73
+ :'affiliate' => :'Integer',
69
74
  :'reference' => :'String',
70
75
  :'subscriber' => :'Integer',
71
76
  :'token' => :'Integer'
@@ -96,6 +101,10 @@ module Wallee
96
101
  self.planned_termination_date = attributes[:'plannedTerminationDate']
97
102
  end
98
103
 
104
+ if attributes.has_key?(:'affiliate')
105
+ self.affiliate = attributes[:'affiliate']
106
+ end
107
+
99
108
  if attributes.has_key?(:'reference')
100
109
  self.reference = attributes[:'reference']
101
110
  end
@@ -142,6 +151,7 @@ module Wallee
142
151
  version == o.version &&
143
152
  description == o.description &&
144
153
  planned_termination_date == o.planned_termination_date &&
154
+ affiliate == o.affiliate &&
145
155
  reference == o.reference &&
146
156
  subscriber == o.subscriber &&
147
157
  token == o.token
@@ -156,7 +166,7 @@ module Wallee
156
166
  # Calculates hash code according to all attributes.
157
167
  # @return [Fixnum] Hash code
158
168
  def hash
159
- [id, version, description, planned_termination_date, reference, subscriber, token].hash
169
+ [id, version, description, planned_termination_date, affiliate, reference, subscriber, token].hash
160
170
  end
161
171
 
162
172
  # Builds the object from hash
@@ -0,0 +1,44 @@
1
+ =begin
2
+ Wallee API: 1.0.0
3
+
4
+ The wallee API allows an easy interaction with the wallee web service.
5
+
6
+
7
+
8
+ Licensed under the Apache License, Version 2.0 (the "License");
9
+ you may not use this file except in compliance with the License.
10
+ You may obtain a copy of the License at
11
+
12
+ http://www.apache.org/licenses/LICENSE-2.0
13
+
14
+ Unless required by applicable law or agreed to in writing, software
15
+ distributed under the License is distributed on an "AS IS" BASIS,
16
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
+ See the License for the specific language governing permissions and
18
+ limitations under the License.
19
+
20
+ =end
21
+
22
+ require 'date'
23
+
24
+ module Wallee
25
+ class TokenizationnMode
26
+
27
+ FORCE_CREATION = "FORCE_CREATION".freeze
28
+ FORCE_CREATION_WITH_ONE_CLICK_PAYMENT = "FORCE_CREATION_WITH_ONE_CLICK_PAYMENT".freeze
29
+ ALLOW_ONE_CLICK_PAYMENT = "ALLOW_ONE_CLICK_PAYMENT".freeze
30
+
31
+ # Builds the object from hash
32
+ # @param [Hash] attributes Model attributes in the form of hash
33
+ # @return [Object] Returns the model itself
34
+ def build_from_hash(value)
35
+
36
+ consantValues = TokenizationnMode.constants.select{|c| c.to_s == value}
37
+ raise "Invalid ENUM value #{value} for class #TokenizationnMode" if consantValues.empty?
38
+
39
+ value
40
+
41
+ end
42
+ end
43
+
44
+ end
@@ -27,6 +27,9 @@ module Wallee
27
27
  #
28
28
  attr_accessor :accept_header
29
29
 
30
+ # The accept language contains the header which indicates the language preferences of the buyer.
31
+ attr_accessor :accept_language_header
32
+
30
33
  #
31
34
  attr_accessor :allowed_payment_method_brands
32
35
 
@@ -81,9 +84,21 @@ module Wallee
81
84
  # The customer's presence indicates what kind of authentication methods can be used during the authorization of the transaction. If no value is provided, 'Virtually Present' is used by default.
82
85
  attr_accessor :customers_presence
83
86
 
87
+ # This date indicates when the decision has been made if a transaction should be delivered or not.
88
+ attr_accessor :delivery_decision_made_on
89
+
90
+ # The device session identifier links the transaction with the session identifier provided in the URL of the device data JavaScript. This allows to link the transaction with the collected device data of the buyer.
91
+ attr_accessor :device_session_identifier
92
+
84
93
  # The transaction's end of life indicates the date from which on no operation can be carried out anymore.
85
94
  attr_accessor :end_of_life
86
95
 
96
+ #
97
+ attr_accessor :environment
98
+
99
+ # The environment selection strategy determines how the environment (test or production) for processing the transaction is selected.
100
+ attr_accessor :environment_selection_strategy
101
+
87
102
  #
88
103
  attr_accessor :failed_on
89
104
 
@@ -99,7 +114,7 @@ module Wallee
99
114
  # The ID is the primary key of the entity. The ID identifies the entity uniquely.
100
115
  attr_accessor :id
101
116
 
102
- #
117
+ # The Internet Protocol (IP) address identifies the device of the buyer.
103
118
  attr_accessor :internet_protocol_address
104
119
 
105
120
  #
@@ -156,7 +171,10 @@ module Wallee
156
171
  #
157
172
  attr_accessor :token
158
173
 
159
- #
174
+ # The tokenization mode controls if and how a token is automatically applied to the transaction. When a token is directly assigned to the transaction the mode will have no effect at all. Obmitting the mode will disable the automatic application of a token.
175
+ attr_accessor :tokenization_mode
176
+
177
+ # The user agent header provides the exact string which contains the user agent of the buyer.
160
178
  attr_accessor :user_agent_header
161
179
 
162
180
  # The failure message describes for an end user why the transaction is failed in the language of the user. This is only provided when the transaction is marked as failed.
@@ -173,6 +191,7 @@ module Wallee
173
191
  def self.attribute_map
174
192
  {
175
193
  :'accept_header' => :'acceptHeader',
194
+ :'accept_language_header' => :'acceptLanguageHeader',
176
195
  :'allowed_payment_method_brands' => :'allowedPaymentMethodBrands',
177
196
  :'allowed_payment_method_configurations' => :'allowedPaymentMethodConfigurations',
178
197
  :'authorization_amount' => :'authorizationAmount',
@@ -191,7 +210,11 @@ module Wallee
191
210
  :'customer_email_address' => :'customerEmailAddress',
192
211
  :'customer_id' => :'customerId',
193
212
  :'customers_presence' => :'customersPresence',
213
+ :'delivery_decision_made_on' => :'deliveryDecisionMadeOn',
214
+ :'device_session_identifier' => :'deviceSessionIdentifier',
194
215
  :'end_of_life' => :'endOfLife',
216
+ :'environment' => :'environment',
217
+ :'environment_selection_strategy' => :'environmentSelectionStrategy',
195
218
  :'failed_on' => :'failedOn',
196
219
  :'failed_url' => :'failedUrl',
197
220
  :'failure_reason' => :'failureReason',
@@ -216,6 +239,7 @@ module Wallee
216
239
  :'success_url' => :'successUrl',
217
240
  :'time_zone' => :'timeZone',
218
241
  :'token' => :'token',
242
+ :'tokenization_mode' => :'tokenizationMode',
219
243
  :'user_agent_header' => :'userAgentHeader',
220
244
  :'user_failure_message' => :'userFailureMessage',
221
245
  :'user_interface_type' => :'userInterfaceType',
@@ -227,6 +251,7 @@ module Wallee
227
251
  def self.swagger_types
228
252
  {
229
253
  :'accept_header' => :'String',
254
+ :'accept_language_header' => :'String',
230
255
  :'allowed_payment_method_brands' => :'Array<PaymentMethodBrand>',
231
256
  :'allowed_payment_method_configurations' => :'Array<Integer>',
232
257
  :'authorization_amount' => :'Float',
@@ -245,7 +270,11 @@ module Wallee
245
270
  :'customer_email_address' => :'String',
246
271
  :'customer_id' => :'String',
247
272
  :'customers_presence' => :'CustomersPresence',
273
+ :'delivery_decision_made_on' => :'DateTime',
274
+ :'device_session_identifier' => :'String',
248
275
  :'end_of_life' => :'DateTime',
276
+ :'environment' => :'Environment',
277
+ :'environment_selection_strategy' => :'TransactionEnvironmentSelectionStrategy',
249
278
  :'failed_on' => :'DateTime',
250
279
  :'failed_url' => :'String',
251
280
  :'failure_reason' => :'FailureReason',
@@ -270,6 +299,7 @@ module Wallee
270
299
  :'success_url' => :'String',
271
300
  :'time_zone' => :'String',
272
301
  :'token' => :'Token',
302
+ :'tokenization_mode' => :'TokenizationnMode',
273
303
  :'user_agent_header' => :'String',
274
304
  :'user_failure_message' => :'String',
275
305
  :'user_interface_type' => :'TransactionUserInterfaceType',
@@ -289,6 +319,10 @@ module Wallee
289
319
  self.accept_header = attributes[:'acceptHeader']
290
320
  end
291
321
 
322
+ if attributes.has_key?(:'acceptLanguageHeader')
323
+ self.accept_language_header = attributes[:'acceptLanguageHeader']
324
+ end
325
+
292
326
  if attributes.has_key?(:'allowedPaymentMethodBrands')
293
327
  if (value = attributes[:'allowedPaymentMethodBrands']).is_a?(Array)
294
328
  self.allowed_payment_method_brands = value
@@ -365,10 +399,26 @@ module Wallee
365
399
  self.customers_presence = attributes[:'customersPresence']
366
400
  end
367
401
 
402
+ if attributes.has_key?(:'deliveryDecisionMadeOn')
403
+ self.delivery_decision_made_on = attributes[:'deliveryDecisionMadeOn']
404
+ end
405
+
406
+ if attributes.has_key?(:'deviceSessionIdentifier')
407
+ self.device_session_identifier = attributes[:'deviceSessionIdentifier']
408
+ end
409
+
368
410
  if attributes.has_key?(:'endOfLife')
369
411
  self.end_of_life = attributes[:'endOfLife']
370
412
  end
371
413
 
414
+ if attributes.has_key?(:'environment')
415
+ self.environment = attributes[:'environment']
416
+ end
417
+
418
+ if attributes.has_key?(:'environmentSelectionStrategy')
419
+ self.environment_selection_strategy = attributes[:'environmentSelectionStrategy']
420
+ end
421
+
372
422
  if attributes.has_key?(:'failedOn')
373
423
  self.failed_on = attributes[:'failedOn']
374
424
  end
@@ -469,6 +519,10 @@ module Wallee
469
519
  self.token = attributes[:'token']
470
520
  end
471
521
 
522
+ if attributes.has_key?(:'tokenizationMode')
523
+ self.tokenization_mode = attributes[:'tokenizationMode']
524
+ end
525
+
472
526
  if attributes.has_key?(:'userAgentHeader')
473
527
  self.user_agent_header = attributes[:'userAgentHeader']
474
528
  end
@@ -506,6 +560,7 @@ module Wallee
506
560
  return true if self.equal?(o)
507
561
  self.class == o.class &&
508
562
  accept_header == o.accept_header &&
563
+ accept_language_header == o.accept_language_header &&
509
564
  allowed_payment_method_brands == o.allowed_payment_method_brands &&
510
565
  allowed_payment_method_configurations == o.allowed_payment_method_configurations &&
511
566
  authorization_amount == o.authorization_amount &&
@@ -524,7 +579,11 @@ module Wallee
524
579
  customer_email_address == o.customer_email_address &&
525
580
  customer_id == o.customer_id &&
526
581
  customers_presence == o.customers_presence &&
582
+ delivery_decision_made_on == o.delivery_decision_made_on &&
583
+ device_session_identifier == o.device_session_identifier &&
527
584
  end_of_life == o.end_of_life &&
585
+ environment == o.environment &&
586
+ environment_selection_strategy == o.environment_selection_strategy &&
528
587
  failed_on == o.failed_on &&
529
588
  failed_url == o.failed_url &&
530
589
  failure_reason == o.failure_reason &&
@@ -549,6 +608,7 @@ module Wallee
549
608
  success_url == o.success_url &&
550
609
  time_zone == o.time_zone &&
551
610
  token == o.token &&
611
+ tokenization_mode == o.tokenization_mode &&
552
612
  user_agent_header == o.user_agent_header &&
553
613
  user_failure_message == o.user_failure_message &&
554
614
  user_interface_type == o.user_interface_type &&
@@ -564,7 +624,7 @@ module Wallee
564
624
  # Calculates hash code according to all attributes.
565
625
  # @return [Fixnum] Hash code
566
626
  def hash
567
- [accept_header, allowed_payment_method_brands, allowed_payment_method_configurations, authorization_amount, authorization_timeout_on, authorized_on, auto_confirmation_enabled, billing_address, charge_retry_enabled, completed_on, completion_timeout_on, confirmed_by, confirmed_on, created_by, created_on, currency, customer_email_address, customer_id, customers_presence, end_of_life, failed_on, failed_url, failure_reason, group, id, internet_protocol_address, internet_protocol_address_country, invoice_merchant_reference, language, line_items, linked_space_id, merchant_reference, meta_data, payment_connector_configuration, planned_purge_date, processing_on, refunded_amount, shipping_address, shipping_method, space_view_id, state, success_url, time_zone, token, user_agent_header, user_failure_message, user_interface_type, version].hash
627
+ [accept_header, accept_language_header, allowed_payment_method_brands, allowed_payment_method_configurations, authorization_amount, authorization_timeout_on, authorized_on, auto_confirmation_enabled, billing_address, charge_retry_enabled, completed_on, completion_timeout_on, confirmed_by, confirmed_on, created_by, created_on, currency, customer_email_address, customer_id, customers_presence, delivery_decision_made_on, device_session_identifier, end_of_life, environment, environment_selection_strategy, failed_on, failed_url, failure_reason, group, id, internet_protocol_address, internet_protocol_address_country, invoice_merchant_reference, language, line_items, linked_space_id, merchant_reference, meta_data, payment_connector_configuration, planned_purge_date, processing_on, refunded_amount, shipping_address, shipping_method, space_view_id, state, success_url, time_zone, token, tokenization_mode, user_agent_header, user_failure_message, user_interface_type, version].hash
568
628
  end
569
629
 
570
630
  # Builds the object from hash
@@ -75,6 +75,9 @@ module Wallee
75
75
  #
76
76
  attr_accessor :token
77
77
 
78
+ # The tokenization mode controls if and how a token is automatically applied to the transaction. When a token is directly assigned to the transaction the mode will have no effect at all. Obmitting the mode will disable the automatic application of a token.
79
+ attr_accessor :tokenization_mode
80
+
78
81
  # When auto confirmation is enabled the transaction can be confirmed by the user and does not require an explicit confirmation through the web service API.
79
82
  attr_accessor :auto_confirmation_enabled
80
83
 
@@ -84,6 +87,15 @@ module Wallee
84
87
  # The customer's presence indicates what kind of authentication methods can be used during the authorization of the transaction. If no value is provided, 'Virtually Present' is used by default.
85
88
  attr_accessor :customers_presence
86
89
 
90
+ # The device session identifier links the transaction with the session identifier provided in the URL of the device data JavaScript. This allows to link the transaction with the collected device data of the buyer.
91
+ attr_accessor :device_session_identifier
92
+
93
+ #
94
+ attr_accessor :environment
95
+
96
+ # The environment selection strategy determines how the environment (test or production) for processing the transaction is selected.
97
+ attr_accessor :environment_selection_strategy
98
+
87
99
  #
88
100
  attr_accessor :space_view_id
89
101
 
@@ -108,9 +120,13 @@ module Wallee
108
120
  :'success_url' => :'successUrl',
109
121
  :'time_zone' => :'timeZone',
110
122
  :'token' => :'token',
123
+ :'tokenization_mode' => :'tokenizationMode',
111
124
  :'auto_confirmation_enabled' => :'autoConfirmationEnabled',
112
125
  :'charge_retry_enabled' => :'chargeRetryEnabled',
113
126
  :'customers_presence' => :'customersPresence',
127
+ :'device_session_identifier' => :'deviceSessionIdentifier',
128
+ :'environment' => :'environment',
129
+ :'environment_selection_strategy' => :'environmentSelectionStrategy',
114
130
  :'space_view_id' => :'spaceViewId'
115
131
  }
116
132
  end
@@ -135,9 +151,13 @@ module Wallee
135
151
  :'success_url' => :'String',
136
152
  :'time_zone' => :'String',
137
153
  :'token' => :'Integer',
154
+ :'tokenization_mode' => :'TokenizationnMode',
138
155
  :'auto_confirmation_enabled' => :'BOOLEAN',
139
156
  :'charge_retry_enabled' => :'BOOLEAN',
140
157
  :'customers_presence' => :'CustomersPresence',
158
+ :'device_session_identifier' => :'String',
159
+ :'environment' => :'Environment',
160
+ :'environment_selection_strategy' => :'TransactionEnvironmentSelectionStrategy',
141
161
  :'space_view_id' => :'Integer'
142
162
  }
143
163
  end
@@ -226,6 +246,10 @@ module Wallee
226
246
  self.token = attributes[:'token']
227
247
  end
228
248
 
249
+ if attributes.has_key?(:'tokenizationMode')
250
+ self.tokenization_mode = attributes[:'tokenizationMode']
251
+ end
252
+
229
253
  if attributes.has_key?(:'autoConfirmationEnabled')
230
254
  self.auto_confirmation_enabled = attributes[:'autoConfirmationEnabled']
231
255
  end
@@ -238,6 +262,18 @@ module Wallee
238
262
  self.customers_presence = attributes[:'customersPresence']
239
263
  end
240
264
 
265
+ if attributes.has_key?(:'deviceSessionIdentifier')
266
+ self.device_session_identifier = attributes[:'deviceSessionIdentifier']
267
+ end
268
+
269
+ if attributes.has_key?(:'environment')
270
+ self.environment = attributes[:'environment']
271
+ end
272
+
273
+ if attributes.has_key?(:'environmentSelectionStrategy')
274
+ self.environment_selection_strategy = attributes[:'environmentSelectionStrategy']
275
+ end
276
+
241
277
  if attributes.has_key?(:'spaceViewId')
242
278
  self.space_view_id = attributes[:'spaceViewId']
243
279
  end
@@ -284,9 +320,13 @@ module Wallee
284
320
  success_url == o.success_url &&
285
321
  time_zone == o.time_zone &&
286
322
  token == o.token &&
323
+ tokenization_mode == o.tokenization_mode &&
287
324
  auto_confirmation_enabled == o.auto_confirmation_enabled &&
288
325
  charge_retry_enabled == o.charge_retry_enabled &&
289
326
  customers_presence == o.customers_presence &&
327
+ device_session_identifier == o.device_session_identifier &&
328
+ environment == o.environment &&
329
+ environment_selection_strategy == o.environment_selection_strategy &&
290
330
  space_view_id == o.space_view_id
291
331
  end
292
332
 
@@ -299,7 +339,7 @@ module Wallee
299
339
  # Calculates hash code according to all attributes.
300
340
  # @return [Fixnum] Hash code
301
341
  def hash
302
- [allowed_payment_method_brands, allowed_payment_method_configurations, billing_address, currency, customer_email_address, customer_id, failed_url, invoice_merchant_reference, language, line_items, merchant_reference, meta_data, shipping_address, shipping_method, success_url, time_zone, token, auto_confirmation_enabled, charge_retry_enabled, customers_presence, space_view_id].hash
342
+ [allowed_payment_method_brands, allowed_payment_method_configurations, billing_address, currency, customer_email_address, customer_id, failed_url, invoice_merchant_reference, language, line_items, merchant_reference, meta_data, shipping_address, shipping_method, success_url, time_zone, token, tokenization_mode, auto_confirmation_enabled, charge_retry_enabled, customers_presence, device_session_identifier, environment, environment_selection_strategy, space_view_id].hash
303
343
  end
304
344
 
305
345
  # Builds the object from hash