wallee-ruby-sdk 2.2.3 → 3.0.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.
- checksums.yaml +4 -4
- data/LICENSE +1 -1
- data/README.md +1 -1
- data/lib/wallee-ruby-sdk.rb +63 -8
- data/lib/wallee-ruby-sdk/api/bank_account_service_api.rb +213 -0
- data/lib/wallee-ruby-sdk/api/bank_transaction_service_api.rb +213 -0
- data/lib/wallee-ruby-sdk/api/charge_bank_transaction_service_api.rb +213 -0
- data/lib/wallee-ruby-sdk/api/currency_bank_account_service_api.rb +213 -0
- data/lib/wallee-ruby-sdk/api/external_transfer_bank_transaction_service_api.rb +213 -0
- data/lib/wallee-ruby-sdk/api/internal_transfer_bank_transaction_service_api.rb +213 -0
- data/lib/wallee-ruby-sdk/api/payment_terminal_till_service_api.rb +170 -0
- data/lib/wallee-ruby-sdk/api/refund_bank_transaction_service_api.rb +213 -0
- data/lib/wallee-ruby-sdk/api/refund_recovery_bank_transaction_service_api.rb +213 -0
- data/lib/wallee-ruby-sdk/api/shopify_subscriber_service_api.rb +62 -0
- data/lib/wallee-ruby-sdk/api/shopify_subscription_service_api.rb +124 -0
- data/lib/wallee-ruby-sdk/api/shopify_transaction_service_api.rb +213 -0
- data/lib/wallee-ruby-sdk/api/subscriber_service_api.rb +3 -3
- data/lib/wallee-ruby-sdk/api/subscription_service_api.rb +67 -0
- data/lib/wallee-ruby-sdk/api/token_service_api.rb +189 -0
- data/lib/wallee-ruby-sdk/api/transaction_terminal_service_api.rb +21 -32
- data/lib/wallee-ruby-sdk/api/web_app_service_api.rb +200 -0
- data/lib/wallee-ruby-sdk/api_client.rb +7 -4
- data/lib/wallee-ruby-sdk/configuration.rb +2 -2
- data/lib/wallee-ruby-sdk/models/abstract_account_update.rb +11 -1
- data/lib/wallee-ruby-sdk/models/abstract_payment_link_update.rb +15 -15
- data/lib/wallee-ruby-sdk/models/{abstract_shopify_subscription_product_active.rb → abstract_shopify_subscription_product_update.rb} +2 -12
- data/lib/wallee-ruby-sdk/models/abstract_space_update.rb +11 -1
- data/lib/wallee-ruby-sdk/models/abstract_subscription_product_active.rb +11 -1
- data/lib/wallee-ruby-sdk/models/abstract_transaction_pending.rb +59 -1
- data/lib/wallee-ruby-sdk/models/abstract_webhook_url_update.rb +24 -0
- data/lib/wallee-ruby-sdk/models/account.rb +31 -1
- data/lib/wallee-ruby-sdk/models/account_create.rb +11 -1
- data/lib/wallee-ruby-sdk/models/account_update.rb +11 -1
- data/lib/wallee-ruby-sdk/models/authenticated_card_data.rb +221 -0
- data/lib/wallee-ruby-sdk/models/{unencrypted_card_data.rb → authenticated_card_data_create.rb} +86 -12
- data/lib/wallee-ruby-sdk/models/bank_account.rb +291 -0
- data/lib/wallee-ruby-sdk/models/bank_account_environment.rb +35 -0
- data/lib/wallee-ruby-sdk/models/bank_account_state.rb +37 -0
- data/lib/wallee-ruby-sdk/models/bank_account_type.rb +227 -0
- data/lib/wallee-ruby-sdk/models/bank_transaction.rb +387 -0
- data/lib/wallee-ruby-sdk/models/bank_transaction_flow_direction.rb +35 -0
- data/lib/wallee-ruby-sdk/models/bank_transaction_source.rb +215 -0
- data/lib/wallee-ruby-sdk/models/bank_transaction_state.rb +35 -0
- data/lib/wallee-ruby-sdk/models/bank_transaction_type.rb +215 -0
- data/lib/wallee-ruby-sdk/models/card_authentication_response.rb +38 -0
- data/lib/wallee-ruby-sdk/models/card_authentication_version.rb +35 -0
- data/lib/wallee-ruby-sdk/models/card_cryptogram.rb +201 -0
- data/lib/wallee-ruby-sdk/models/card_cryptogram_create.rb +211 -0
- data/lib/wallee-ruby-sdk/models/card_cryptogram_type.rb +34 -0
- data/lib/wallee-ruby-sdk/models/cardholder_authentication.rb +231 -0
- data/lib/wallee-ruby-sdk/models/cardholder_authentication_create.rb +241 -0
- data/lib/wallee-ruby-sdk/models/charge_attempt.rb +11 -1
- data/lib/wallee-ruby-sdk/models/charge_bank_transaction.rb +291 -0
- data/lib/wallee-ruby-sdk/models/currency_bank_account.rb +241 -0
- data/lib/wallee-ruby-sdk/models/debt_collection_case.rb +1 -1
- data/lib/wallee-ruby-sdk/models/debt_collection_case_create.rb +1 -1
- data/lib/wallee-ruby-sdk/models/external_transfer_bank_transaction.rb +251 -0
- data/lib/wallee-ruby-sdk/models/internal_transfer_bank_transaction.rb +231 -0
- data/lib/wallee-ruby-sdk/models/payment_adjustment.rb +231 -0
- data/lib/wallee-ruby-sdk/models/payment_adjustment_type.rb +215 -0
- data/lib/wallee-ruby-sdk/models/payment_connector_configuration.rb +13 -1
- data/lib/wallee-ruby-sdk/models/payment_contract.rb +1 -25
- data/lib/wallee-ruby-sdk/models/payment_link.rb +16 -40
- data/lib/wallee-ruby-sdk/models/payment_link_active.rb +15 -15
- data/lib/wallee-ruby-sdk/models/payment_link_address_handling_mode.rb +36 -0
- data/lib/wallee-ruby-sdk/models/payment_link_create.rb +16 -44
- data/lib/wallee-ruby-sdk/models/payment_link_update.rb +15 -15
- data/lib/wallee-ruby-sdk/models/payment_terminal.rb +11 -1
- data/lib/wallee-ruby-sdk/models/payment_terminal_address.rb +0 -60
- data/lib/wallee-ruby-sdk/models/payment_terminal_configuration_version.rb +11 -1
- data/lib/wallee-ruby-sdk/models/payment_terminal_location.rb +2 -22
- data/lib/wallee-ruby-sdk/models/payment_terminal_receipt_type.rb +215 -0
- data/lib/wallee-ruby-sdk/models/permission.rb +14 -4
- data/lib/wallee-ruby-sdk/models/recurring_indicator.rb +37 -0
- data/lib/wallee-ruby-sdk/models/refund_bank_transaction.rb +281 -0
- data/lib/wallee-ruby-sdk/models/refund_recovery_bank_transaction.rb +293 -0
- data/lib/wallee-ruby-sdk/models/rendered_terminal_receipt.rb +26 -6
- data/lib/wallee-ruby-sdk/models/role.rb +1 -1
- data/lib/wallee-ruby-sdk/models/role_state.rb +37 -0
- data/lib/wallee-ruby-sdk/models/sales_channel.rb +34 -4
- data/lib/wallee-ruby-sdk/models/shopify_additional_line_item_data.rb +35 -0
- data/lib/wallee-ruby-sdk/models/shopify_integration.rb +73 -31
- data/lib/wallee-ruby-sdk/models/shopify_integration_payment_app_version.rb +34 -0
- data/lib/wallee-ruby-sdk/models/{shopify_integration_app_version.rb → shopify_integration_subscription_app_version.rb} +3 -3
- data/lib/wallee-ruby-sdk/models/shopify_subscriber.rb +1 -1
- data/lib/wallee-ruby-sdk/models/shopify_subscriber_active.rb +241 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscriber_creation.rb +216 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription.rb +61 -7
- data/lib/wallee-ruby-sdk/models/shopify_subscription_address.rb +0 -60
- data/lib/wallee-ruby-sdk/models/{payment_terminal_contact_address.rb → shopify_subscription_address_create.rb} +152 -2
- data/lib/wallee-ruby-sdk/models/shopify_subscription_creation_request.rb +363 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_model_billing_configuration.rb +271 -0
- data/lib/wallee-ruby-sdk/models/{shopify_subscription_edit_model_item.rb → shopify_subscription_model_item.rb} +2 -2
- data/lib/wallee-ruby-sdk/models/{shopify_subscription_edit_model_tax_line.rb → shopify_subscription_model_tax_line.rb} +1 -1
- data/lib/wallee-ruby-sdk/models/shopify_subscription_product_create.rb +9 -14
- data/lib/wallee-ruby-sdk/models/{shopify_subscription_product_active.rb → shopify_subscription_product_update.rb} +2 -12
- data/lib/wallee-ruby-sdk/models/shopify_subscription_update_addresses_request.rb +211 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_update_request.rb +11 -81
- data/lib/wallee-ruby-sdk/models/shopify_subscription_version.rb +11 -1
- data/lib/wallee-ruby-sdk/models/space.rb +31 -1
- data/lib/wallee-ruby-sdk/models/space_create.rb +11 -1
- data/lib/wallee-ruby-sdk/models/space_update.rb +11 -1
- data/lib/wallee-ruby-sdk/models/subscriber.rb +1 -1
- data/lib/wallee-ruby-sdk/models/subscriber_create.rb +1 -1
- data/lib/wallee-ruby-sdk/models/subscription.rb +11 -1
- data/lib/wallee-ruby-sdk/models/subscription_affiliate.rb +1 -25
- data/lib/wallee-ruby-sdk/models/subscription_affiliate_create.rb +1 -29
- data/lib/wallee-ruby-sdk/models/subscription_affiliate_deleted.rb +1 -25
- data/lib/wallee-ruby-sdk/models/subscription_affiliate_deleting.rb +1 -25
- data/lib/wallee-ruby-sdk/models/subscription_charge.rb +49 -1
- data/lib/wallee-ruby-sdk/models/subscription_charge_create.rb +49 -1
- data/lib/wallee-ruby-sdk/models/subscription_create_request.rb +1 -1
- data/lib/wallee-ruby-sdk/models/subscription_ledger_entry.rb +12 -2
- data/lib/wallee-ruby-sdk/models/subscription_ledger_entry_create.rb +1 -1
- data/lib/wallee-ruby-sdk/models/subscription_product.rb +11 -1
- data/lib/wallee-ruby-sdk/models/subscription_product_active.rb +11 -1
- data/lib/wallee-ruby-sdk/models/subscription_product_component.rb +1 -1
- data/lib/wallee-ruby-sdk/models/subscription_product_component_update.rb +1 -1
- data/lib/wallee-ruby-sdk/models/subscription_product_create.rb +11 -1
- data/lib/wallee-ruby-sdk/models/subscription_product_version.rb +11 -1
- data/lib/wallee-ruby-sdk/models/subscription_product_version_pending.rb +14 -4
- data/lib/wallee-ruby-sdk/models/subscription_update_request.rb +206 -0
- data/lib/wallee-ruby-sdk/models/tax_calculation.rb +35 -0
- data/lib/wallee-ruby-sdk/models/terminal_receipt_fetch_request.rb +221 -0
- data/lib/wallee-ruby-sdk/models/terminal_receipt_format.rb +35 -0
- data/lib/wallee-ruby-sdk/models/token.rb +1 -25
- data/lib/wallee-ruby-sdk/models/token_create.rb +1 -29
- data/lib/wallee-ruby-sdk/models/tokenized_card_data.rb +211 -0
- data/lib/wallee-ruby-sdk/models/{unencrypted_card_data_create.rb → tokenized_card_data_create.rb} +60 -5
- data/lib/wallee-ruby-sdk/models/transaction.rb +132 -4
- data/lib/wallee-ruby-sdk/models/transaction_completion.rb +26 -1
- data/lib/wallee-ruby-sdk/models/transaction_completion_behavior.rb +36 -0
- data/lib/wallee-ruby-sdk/models/transaction_completion_request.rb +26 -1
- data/lib/wallee-ruby-sdk/models/transaction_create.rb +59 -1
- data/lib/wallee-ruby-sdk/models/transaction_pending.rb +59 -1
- data/lib/wallee-ruby-sdk/models/web_app_confirmation_request.rb +206 -0
- data/lib/wallee-ruby-sdk/models/web_app_confirmation_response.rb +231 -0
- data/lib/wallee-ruby-sdk/models/webhook_url.rb +35 -1
- data/lib/wallee-ruby-sdk/models/webhook_url_create.rb +24 -0
- data/lib/wallee-ruby-sdk/models/webhook_url_update.rb +24 -0
- data/lib/wallee-ruby-sdk/version.rb +1 -1
- data/test/condition_type_service_test.rb +22 -0
- data/wallee-ruby-sdk.gemspec +3 -2
- metadata +93 -17
|
@@ -20,7 +20,7 @@ require 'date'
|
|
|
20
20
|
module Wallee
|
|
21
21
|
#
|
|
22
22
|
class SubscriptionAffiliateDeleting
|
|
23
|
-
#
|
|
23
|
+
# A client generated nonce which identifies the entity to be created. Subsequent creation requests with the same external ID will not create new entities but return the initially created entity instead.
|
|
24
24
|
attr_accessor :external_id
|
|
25
25
|
|
|
26
26
|
# The ID is the primary key of the entity. The ID identifies the entity uniquely.
|
|
@@ -137,14 +137,6 @@ module Wallee
|
|
|
137
137
|
# @return Array for valid properties with the reasons
|
|
138
138
|
def list_invalid_properties
|
|
139
139
|
invalid_properties = Array.new
|
|
140
|
-
if !@external_id.nil? && @external_id.to_s.length > 100
|
|
141
|
-
invalid_properties.push('invalid value for "external_id", the character length must be smaller than or equal to 100.')
|
|
142
|
-
end
|
|
143
|
-
|
|
144
|
-
if !@external_id.nil? && @external_id.to_s.length < 1
|
|
145
|
-
invalid_properties.push('invalid value for "external_id", the character length must be great than or equal to 1.')
|
|
146
|
-
end
|
|
147
|
-
|
|
148
140
|
if !@name.nil? && @name.to_s.length > 255
|
|
149
141
|
invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 255.')
|
|
150
142
|
end
|
|
@@ -167,8 +159,6 @@ module Wallee
|
|
|
167
159
|
# Check to see if the all the properties in the model are valid
|
|
168
160
|
# @return true if the model is valid
|
|
169
161
|
def valid?
|
|
170
|
-
return false if !@external_id.nil? && @external_id.to_s.length > 100
|
|
171
|
-
return false if !@external_id.nil? && @external_id.to_s.length < 1
|
|
172
162
|
return false if !@name.nil? && @name.to_s.length > 255
|
|
173
163
|
return false if !@name.nil? && @name.to_s.length < 3
|
|
174
164
|
return false if !@reference.nil? && @reference.to_s.length > 100
|
|
@@ -176,20 +166,6 @@ module Wallee
|
|
|
176
166
|
true
|
|
177
167
|
end
|
|
178
168
|
|
|
179
|
-
# Custom attribute writer method with validation
|
|
180
|
-
# @param [Object] external_id Value to be assigned
|
|
181
|
-
def external_id=(external_id)
|
|
182
|
-
if !external_id.nil? && external_id.to_s.length > 100
|
|
183
|
-
fail ArgumentError, 'invalid value for "external_id", the character length must be smaller than or equal to 100.'
|
|
184
|
-
end
|
|
185
|
-
|
|
186
|
-
if !external_id.nil? && external_id.to_s.length < 1
|
|
187
|
-
fail ArgumentError, 'invalid value for "external_id", the character length must be great than or equal to 1.'
|
|
188
|
-
end
|
|
189
|
-
|
|
190
|
-
@external_id = external_id
|
|
191
|
-
end
|
|
192
|
-
|
|
193
169
|
# Custom attribute writer method with validation
|
|
194
170
|
# @param [Object] name Value to be assigned
|
|
195
171
|
def name=(name)
|
|
@@ -29,7 +29,7 @@ module Wallee
|
|
|
29
29
|
#
|
|
30
30
|
attr_accessor :discarded_on
|
|
31
31
|
|
|
32
|
-
#
|
|
32
|
+
# A client generated nonce which identifies the entity to be created. Subsequent creation requests with the same external ID will not create new entities but return the initially created entity instead.
|
|
33
33
|
attr_accessor :external_id
|
|
34
34
|
|
|
35
35
|
#
|
|
@@ -236,20 +236,54 @@ module Wallee
|
|
|
236
236
|
# @return Array for valid properties with the reasons
|
|
237
237
|
def list_invalid_properties
|
|
238
238
|
invalid_properties = Array.new
|
|
239
|
+
if !@failed_url.nil? && @failed_url.to_s.length > 500
|
|
240
|
+
invalid_properties.push('invalid value for "failed_url", the character length must be smaller than or equal to 500.')
|
|
241
|
+
end
|
|
242
|
+
|
|
243
|
+
if !@failed_url.nil? && @failed_url.to_s.length < 9
|
|
244
|
+
invalid_properties.push('invalid value for "failed_url", the character length must be great than or equal to 9.')
|
|
245
|
+
end
|
|
246
|
+
|
|
239
247
|
if !@reference.nil? && @reference.to_s.length > 100
|
|
240
248
|
invalid_properties.push('invalid value for "reference", the character length must be smaller than or equal to 100.')
|
|
241
249
|
end
|
|
242
250
|
|
|
251
|
+
if !@success_url.nil? && @success_url.to_s.length > 500
|
|
252
|
+
invalid_properties.push('invalid value for "success_url", the character length must be smaller than or equal to 500.')
|
|
253
|
+
end
|
|
254
|
+
|
|
255
|
+
if !@success_url.nil? && @success_url.to_s.length < 9
|
|
256
|
+
invalid_properties.push('invalid value for "success_url", the character length must be great than or equal to 9.')
|
|
257
|
+
end
|
|
258
|
+
|
|
243
259
|
invalid_properties
|
|
244
260
|
end
|
|
245
261
|
|
|
246
262
|
# Check to see if the all the properties in the model are valid
|
|
247
263
|
# @return true if the model is valid
|
|
248
264
|
def valid?
|
|
265
|
+
return false if !@failed_url.nil? && @failed_url.to_s.length > 500
|
|
266
|
+
return false if !@failed_url.nil? && @failed_url.to_s.length < 9
|
|
249
267
|
return false if !@reference.nil? && @reference.to_s.length > 100
|
|
268
|
+
return false if !@success_url.nil? && @success_url.to_s.length > 500
|
|
269
|
+
return false if !@success_url.nil? && @success_url.to_s.length < 9
|
|
250
270
|
true
|
|
251
271
|
end
|
|
252
272
|
|
|
273
|
+
# Custom attribute writer method with validation
|
|
274
|
+
# @param [Object] failed_url Value to be assigned
|
|
275
|
+
def failed_url=(failed_url)
|
|
276
|
+
if !failed_url.nil? && failed_url.to_s.length > 500
|
|
277
|
+
fail ArgumentError, 'invalid value for "failed_url", the character length must be smaller than or equal to 500.'
|
|
278
|
+
end
|
|
279
|
+
|
|
280
|
+
if !failed_url.nil? && failed_url.to_s.length < 9
|
|
281
|
+
fail ArgumentError, 'invalid value for "failed_url", the character length must be great than or equal to 9.'
|
|
282
|
+
end
|
|
283
|
+
|
|
284
|
+
@failed_url = failed_url
|
|
285
|
+
end
|
|
286
|
+
|
|
253
287
|
# Custom attribute writer method with validation
|
|
254
288
|
# @param [Object] reference Value to be assigned
|
|
255
289
|
def reference=(reference)
|
|
@@ -260,6 +294,20 @@ module Wallee
|
|
|
260
294
|
@reference = reference
|
|
261
295
|
end
|
|
262
296
|
|
|
297
|
+
# Custom attribute writer method with validation
|
|
298
|
+
# @param [Object] success_url Value to be assigned
|
|
299
|
+
def success_url=(success_url)
|
|
300
|
+
if !success_url.nil? && success_url.to_s.length > 500
|
|
301
|
+
fail ArgumentError, 'invalid value for "success_url", the character length must be smaller than or equal to 500.'
|
|
302
|
+
end
|
|
303
|
+
|
|
304
|
+
if !success_url.nil? && success_url.to_s.length < 9
|
|
305
|
+
fail ArgumentError, 'invalid value for "success_url", the character length must be great than or equal to 9.'
|
|
306
|
+
end
|
|
307
|
+
|
|
308
|
+
@success_url = success_url
|
|
309
|
+
end
|
|
310
|
+
|
|
263
311
|
# Checks equality by comparing each attribute.
|
|
264
312
|
# @param [Object] Object to be compared
|
|
265
313
|
def ==(o)
|
|
@@ -20,7 +20,7 @@ require 'date'
|
|
|
20
20
|
module Wallee
|
|
21
21
|
# The subscription charge represents a single charge carried out for a particular subscription.
|
|
22
22
|
class SubscriptionChargeCreate
|
|
23
|
-
#
|
|
23
|
+
# A client generated nonce which identifies the entity to be created. Subsequent creation requests with the same external ID will not create new entities but return the initially created entity instead.
|
|
24
24
|
attr_accessor :external_id
|
|
25
25
|
|
|
26
26
|
# The user will be redirected to failed URL when the transaction could not be authorized or completed. In case no failed URL is specified a default failed page will be displayed.
|
|
@@ -112,6 +112,14 @@ module Wallee
|
|
|
112
112
|
invalid_properties.push('invalid value for "external_id", external_id cannot be nil.')
|
|
113
113
|
end
|
|
114
114
|
|
|
115
|
+
if !@failed_url.nil? && @failed_url.to_s.length > 500
|
|
116
|
+
invalid_properties.push('invalid value for "failed_url", the character length must be smaller than or equal to 500.')
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
if !@failed_url.nil? && @failed_url.to_s.length < 9
|
|
120
|
+
invalid_properties.push('invalid value for "failed_url", the character length must be great than or equal to 9.')
|
|
121
|
+
end
|
|
122
|
+
|
|
115
123
|
if @processing_type.nil?
|
|
116
124
|
invalid_properties.push('invalid value for "processing_type", processing_type cannot be nil.')
|
|
117
125
|
end
|
|
@@ -124,6 +132,14 @@ module Wallee
|
|
|
124
132
|
invalid_properties.push('invalid value for "subscription", subscription cannot be nil.')
|
|
125
133
|
end
|
|
126
134
|
|
|
135
|
+
if !@success_url.nil? && @success_url.to_s.length > 500
|
|
136
|
+
invalid_properties.push('invalid value for "success_url", the character length must be smaller than or equal to 500.')
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
if !@success_url.nil? && @success_url.to_s.length < 9
|
|
140
|
+
invalid_properties.push('invalid value for "success_url", the character length must be great than or equal to 9.')
|
|
141
|
+
end
|
|
142
|
+
|
|
127
143
|
invalid_properties
|
|
128
144
|
end
|
|
129
145
|
|
|
@@ -131,12 +147,30 @@ module Wallee
|
|
|
131
147
|
# @return true if the model is valid
|
|
132
148
|
def valid?
|
|
133
149
|
return false if @external_id.nil?
|
|
150
|
+
return false if !@failed_url.nil? && @failed_url.to_s.length > 500
|
|
151
|
+
return false if !@failed_url.nil? && @failed_url.to_s.length < 9
|
|
134
152
|
return false if @processing_type.nil?
|
|
135
153
|
return false if !@reference.nil? && @reference.to_s.length > 100
|
|
136
154
|
return false if @subscription.nil?
|
|
155
|
+
return false if !@success_url.nil? && @success_url.to_s.length > 500
|
|
156
|
+
return false if !@success_url.nil? && @success_url.to_s.length < 9
|
|
137
157
|
true
|
|
138
158
|
end
|
|
139
159
|
|
|
160
|
+
# Custom attribute writer method with validation
|
|
161
|
+
# @param [Object] failed_url Value to be assigned
|
|
162
|
+
def failed_url=(failed_url)
|
|
163
|
+
if !failed_url.nil? && failed_url.to_s.length > 500
|
|
164
|
+
fail ArgumentError, 'invalid value for "failed_url", the character length must be smaller than or equal to 500.'
|
|
165
|
+
end
|
|
166
|
+
|
|
167
|
+
if !failed_url.nil? && failed_url.to_s.length < 9
|
|
168
|
+
fail ArgumentError, 'invalid value for "failed_url", the character length must be great than or equal to 9.'
|
|
169
|
+
end
|
|
170
|
+
|
|
171
|
+
@failed_url = failed_url
|
|
172
|
+
end
|
|
173
|
+
|
|
140
174
|
# Custom attribute writer method with validation
|
|
141
175
|
# @param [Object] reference Value to be assigned
|
|
142
176
|
def reference=(reference)
|
|
@@ -147,6 +181,20 @@ module Wallee
|
|
|
147
181
|
@reference = reference
|
|
148
182
|
end
|
|
149
183
|
|
|
184
|
+
# Custom attribute writer method with validation
|
|
185
|
+
# @param [Object] success_url Value to be assigned
|
|
186
|
+
def success_url=(success_url)
|
|
187
|
+
if !success_url.nil? && success_url.to_s.length > 500
|
|
188
|
+
fail ArgumentError, 'invalid value for "success_url", the character length must be smaller than or equal to 500.'
|
|
189
|
+
end
|
|
190
|
+
|
|
191
|
+
if !success_url.nil? && success_url.to_s.length < 9
|
|
192
|
+
fail ArgumentError, 'invalid value for "success_url", the character length must be great than or equal to 9.'
|
|
193
|
+
end
|
|
194
|
+
|
|
195
|
+
@success_url = success_url
|
|
196
|
+
end
|
|
197
|
+
|
|
150
198
|
# Checks equality by comparing each attribute.
|
|
151
199
|
# @param [Object] Object to be compared
|
|
152
200
|
def ==(o)
|
|
@@ -35,7 +35,10 @@ module Wallee
|
|
|
35
35
|
# The created on date indicates the date on which the entity was stored into the database.
|
|
36
36
|
attr_accessor :created_on
|
|
37
37
|
|
|
38
|
-
#
|
|
38
|
+
#
|
|
39
|
+
attr_accessor :discount_including_tax
|
|
40
|
+
|
|
41
|
+
# A client generated nonce which identifies the entity to be created. Subsequent creation requests with the same external ID will not create new entities but return the initially created entity instead.
|
|
39
42
|
attr_accessor :external_id
|
|
40
43
|
|
|
41
44
|
# The ID is the primary key of the entity. The ID identifies the entity uniquely.
|
|
@@ -76,6 +79,7 @@ module Wallee
|
|
|
76
79
|
:'amount_including_tax' => :'amountIncludingTax',
|
|
77
80
|
:'created_by' => :'createdBy',
|
|
78
81
|
:'created_on' => :'createdOn',
|
|
82
|
+
:'discount_including_tax' => :'discountIncludingTax',
|
|
79
83
|
:'external_id' => :'externalId',
|
|
80
84
|
:'id' => :'id',
|
|
81
85
|
:'linked_space_id' => :'linkedSpaceId',
|
|
@@ -98,6 +102,7 @@ module Wallee
|
|
|
98
102
|
:'amount_including_tax' => :'Float',
|
|
99
103
|
:'created_by' => :'Integer',
|
|
100
104
|
:'created_on' => :'DateTime',
|
|
105
|
+
:'discount_including_tax' => :'Float',
|
|
101
106
|
:'external_id' => :'String',
|
|
102
107
|
:'id' => :'Integer',
|
|
103
108
|
:'linked_space_id' => :'Integer',
|
|
@@ -140,6 +145,10 @@ module Wallee
|
|
|
140
145
|
self.created_on = attributes[:'createdOn']
|
|
141
146
|
end
|
|
142
147
|
|
|
148
|
+
if attributes.has_key?(:'discountIncludingTax')
|
|
149
|
+
self.discount_including_tax = attributes[:'discountIncludingTax']
|
|
150
|
+
end
|
|
151
|
+
|
|
143
152
|
if attributes.has_key?(:'externalId')
|
|
144
153
|
self.external_id = attributes[:'externalId']
|
|
145
154
|
end
|
|
@@ -234,6 +243,7 @@ module Wallee
|
|
|
234
243
|
amount_including_tax == o.amount_including_tax &&
|
|
235
244
|
created_by == o.created_by &&
|
|
236
245
|
created_on == o.created_on &&
|
|
246
|
+
discount_including_tax == o.discount_including_tax &&
|
|
237
247
|
external_id == o.external_id &&
|
|
238
248
|
id == o.id &&
|
|
239
249
|
linked_space_id == o.linked_space_id &&
|
|
@@ -256,7 +266,7 @@ module Wallee
|
|
|
256
266
|
# Calculates hash code according to all attributes.
|
|
257
267
|
# @return [Fixnum] Hash code
|
|
258
268
|
def hash
|
|
259
|
-
[aggregated_tax_rate, amount_excluding_tax, amount_including_tax, created_by, created_on, external_id, id, linked_space_id, planned_purge_date, quantity, state, subscription_version, tax_amount, taxes, title, version].hash
|
|
269
|
+
[aggregated_tax_rate, amount_excluding_tax, amount_including_tax, created_by, created_on, discount_including_tax, external_id, id, linked_space_id, planned_purge_date, quantity, state, subscription_version, tax_amount, taxes, title, version].hash
|
|
260
270
|
end
|
|
261
271
|
|
|
262
272
|
# Builds the object from hash
|
|
@@ -23,7 +23,7 @@ module Wallee
|
|
|
23
23
|
#
|
|
24
24
|
attr_accessor :amount_including_tax
|
|
25
25
|
|
|
26
|
-
#
|
|
26
|
+
# A client generated nonce which identifies the entity to be created. Subsequent creation requests with the same external ID will not create new entities but return the initially created entity instead.
|
|
27
27
|
attr_accessor :external_id
|
|
28
28
|
|
|
29
29
|
#
|
|
@@ -38,6 +38,9 @@ module Wallee
|
|
|
38
38
|
# The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.
|
|
39
39
|
attr_accessor :planned_purge_date
|
|
40
40
|
|
|
41
|
+
# Marks the product as locked. Meaning that customer can not change away from this product or change to this product later on.
|
|
42
|
+
attr_accessor :product_locked
|
|
43
|
+
|
|
41
44
|
# The product reference identifies the product for external systems. This field may contain the product's SKU.
|
|
42
45
|
attr_accessor :reference
|
|
43
46
|
|
|
@@ -62,6 +65,7 @@ module Wallee
|
|
|
62
65
|
:'linked_space_id' => :'linkedSpaceId',
|
|
63
66
|
:'name' => :'name',
|
|
64
67
|
:'planned_purge_date' => :'plannedPurgeDate',
|
|
68
|
+
:'product_locked' => :'productLocked',
|
|
65
69
|
:'reference' => :'reference',
|
|
66
70
|
:'sort_order' => :'sortOrder',
|
|
67
71
|
:'space_id' => :'spaceId',
|
|
@@ -79,6 +83,7 @@ module Wallee
|
|
|
79
83
|
:'linked_space_id' => :'Integer',
|
|
80
84
|
:'name' => :'String',
|
|
81
85
|
:'planned_purge_date' => :'DateTime',
|
|
86
|
+
:'product_locked' => :'BOOLEAN',
|
|
82
87
|
:'reference' => :'String',
|
|
83
88
|
:'sort_order' => :'Integer',
|
|
84
89
|
:'space_id' => :'Integer',
|
|
@@ -121,6 +126,10 @@ module Wallee
|
|
|
121
126
|
self.planned_purge_date = attributes[:'plannedPurgeDate']
|
|
122
127
|
end
|
|
123
128
|
|
|
129
|
+
if attributes.has_key?(:'productLocked')
|
|
130
|
+
self.product_locked = attributes[:'productLocked']
|
|
131
|
+
end
|
|
132
|
+
|
|
124
133
|
if attributes.has_key?(:'reference')
|
|
125
134
|
self.reference = attributes[:'reference']
|
|
126
135
|
end
|
|
@@ -196,6 +205,7 @@ module Wallee
|
|
|
196
205
|
linked_space_id == o.linked_space_id &&
|
|
197
206
|
name == o.name &&
|
|
198
207
|
planned_purge_date == o.planned_purge_date &&
|
|
208
|
+
product_locked == o.product_locked &&
|
|
199
209
|
reference == o.reference &&
|
|
200
210
|
sort_order == o.sort_order &&
|
|
201
211
|
space_id == o.space_id &&
|
|
@@ -212,7 +222,7 @@ module Wallee
|
|
|
212
222
|
# Calculates hash code according to all attributes.
|
|
213
223
|
# @return [Fixnum] Hash code
|
|
214
224
|
def hash
|
|
215
|
-
[allowed_payment_method_configurations, failed_payment_suspension_period, id, linked_space_id, name, planned_purge_date, reference, sort_order, space_id, state, version].hash
|
|
225
|
+
[allowed_payment_method_configurations, failed_payment_suspension_period, id, linked_space_id, name, planned_purge_date, product_locked, reference, sort_order, space_id, state, version].hash
|
|
216
226
|
end
|
|
217
227
|
|
|
218
228
|
# Builds the object from hash
|
|
@@ -29,6 +29,9 @@ module Wallee
|
|
|
29
29
|
# The product name is used internally to identify the configuration in administrative interfaces. For example it is used within search fields and hence it should be distinct and descriptive.
|
|
30
30
|
attr_accessor :name
|
|
31
31
|
|
|
32
|
+
# Marks the product as locked. Meaning that customer can not change away from this product or change to this product later on.
|
|
33
|
+
attr_accessor :product_locked
|
|
34
|
+
|
|
32
35
|
# The sort order controls in which order the product is listed. The sort order is used to order the products in ascending order.
|
|
33
36
|
attr_accessor :sort_order
|
|
34
37
|
|
|
@@ -47,6 +50,7 @@ module Wallee
|
|
|
47
50
|
:'allowed_payment_method_configurations' => :'allowedPaymentMethodConfigurations',
|
|
48
51
|
:'failed_payment_suspension_period' => :'failedPaymentSuspensionPeriod',
|
|
49
52
|
:'name' => :'name',
|
|
53
|
+
:'product_locked' => :'productLocked',
|
|
50
54
|
:'sort_order' => :'sortOrder',
|
|
51
55
|
:'state' => :'state',
|
|
52
56
|
:'id' => :'id',
|
|
@@ -60,6 +64,7 @@ module Wallee
|
|
|
60
64
|
:'allowed_payment_method_configurations' => :'Array<Integer>',
|
|
61
65
|
:'failed_payment_suspension_period' => :'String',
|
|
62
66
|
:'name' => :'String',
|
|
67
|
+
:'product_locked' => :'BOOLEAN',
|
|
63
68
|
:'sort_order' => :'Integer',
|
|
64
69
|
:'state' => :'SubscriptionProductState',
|
|
65
70
|
:'id' => :'Integer',
|
|
@@ -89,6 +94,10 @@ module Wallee
|
|
|
89
94
|
self.name = attributes[:'name']
|
|
90
95
|
end
|
|
91
96
|
|
|
97
|
+
if attributes.has_key?(:'productLocked')
|
|
98
|
+
self.product_locked = attributes[:'productLocked']
|
|
99
|
+
end
|
|
100
|
+
|
|
92
101
|
if attributes.has_key?(:'sortOrder')
|
|
93
102
|
self.sort_order = attributes[:'sortOrder']
|
|
94
103
|
end
|
|
@@ -152,6 +161,7 @@ module Wallee
|
|
|
152
161
|
allowed_payment_method_configurations == o.allowed_payment_method_configurations &&
|
|
153
162
|
failed_payment_suspension_period == o.failed_payment_suspension_period &&
|
|
154
163
|
name == o.name &&
|
|
164
|
+
product_locked == o.product_locked &&
|
|
155
165
|
sort_order == o.sort_order &&
|
|
156
166
|
state == o.state &&
|
|
157
167
|
id == o.id &&
|
|
@@ -167,7 +177,7 @@ module Wallee
|
|
|
167
177
|
# Calculates hash code according to all attributes.
|
|
168
178
|
# @return [Fixnum] Hash code
|
|
169
179
|
def hash
|
|
170
|
-
[allowed_payment_method_configurations, failed_payment_suspension_period, name, sort_order, state, id, version].hash
|
|
180
|
+
[allowed_payment_method_configurations, failed_payment_suspension_period, name, product_locked, sort_order, state, id, version].hash
|
|
171
181
|
end
|
|
172
182
|
|
|
173
183
|
# Builds the object from hash
|
|
@@ -26,7 +26,7 @@ module Wallee
|
|
|
26
26
|
#
|
|
27
27
|
attr_accessor :component_group
|
|
28
28
|
|
|
29
|
-
# When a component is marked as a 'default' component it is used
|
|
29
|
+
# When a component is marked as a 'default' component it is used as the default component in its group and will be preselected in the product configuration.
|
|
30
30
|
attr_accessor :default_component
|
|
31
31
|
|
|
32
32
|
# The component description may contain a longer description which gives the subscriber a better understanding of what the component contains.
|
|
@@ -32,7 +32,7 @@ module Wallee
|
|
|
32
32
|
#
|
|
33
33
|
attr_accessor :component_group
|
|
34
34
|
|
|
35
|
-
# When a component is marked as a 'default' component it is used
|
|
35
|
+
# When a component is marked as a 'default' component it is used as the default component in its group and will be preselected in the product configuration.
|
|
36
36
|
attr_accessor :default_component
|
|
37
37
|
|
|
38
38
|
# The component description may contain a longer description which gives the subscriber a better understanding of what the component contains.
|
|
@@ -29,6 +29,9 @@ module Wallee
|
|
|
29
29
|
# The product name is used internally to identify the configuration in administrative interfaces. For example it is used within search fields and hence it should be distinct and descriptive.
|
|
30
30
|
attr_accessor :name
|
|
31
31
|
|
|
32
|
+
# Marks the product as locked. Meaning that customer can not change away from this product or change to this product later on.
|
|
33
|
+
attr_accessor :product_locked
|
|
34
|
+
|
|
32
35
|
# The sort order controls in which order the product is listed. The sort order is used to order the products in ascending order.
|
|
33
36
|
attr_accessor :sort_order
|
|
34
37
|
|
|
@@ -44,6 +47,7 @@ module Wallee
|
|
|
44
47
|
:'allowed_payment_method_configurations' => :'allowedPaymentMethodConfigurations',
|
|
45
48
|
:'failed_payment_suspension_period' => :'failedPaymentSuspensionPeriod',
|
|
46
49
|
:'name' => :'name',
|
|
50
|
+
:'product_locked' => :'productLocked',
|
|
47
51
|
:'sort_order' => :'sortOrder',
|
|
48
52
|
:'state' => :'state',
|
|
49
53
|
:'reference' => :'reference'
|
|
@@ -56,6 +60,7 @@ module Wallee
|
|
|
56
60
|
:'allowed_payment_method_configurations' => :'Array<Integer>',
|
|
57
61
|
:'failed_payment_suspension_period' => :'String',
|
|
58
62
|
:'name' => :'String',
|
|
63
|
+
:'product_locked' => :'BOOLEAN',
|
|
59
64
|
:'sort_order' => :'Integer',
|
|
60
65
|
:'state' => :'SubscriptionProductState',
|
|
61
66
|
:'reference' => :'String'
|
|
@@ -84,6 +89,10 @@ module Wallee
|
|
|
84
89
|
self.name = attributes[:'name']
|
|
85
90
|
end
|
|
86
91
|
|
|
92
|
+
if attributes.has_key?(:'productLocked')
|
|
93
|
+
self.product_locked = attributes[:'productLocked']
|
|
94
|
+
end
|
|
95
|
+
|
|
87
96
|
if attributes.has_key?(:'sortOrder')
|
|
88
97
|
self.sort_order = attributes[:'sortOrder']
|
|
89
98
|
end
|
|
@@ -157,6 +166,7 @@ module Wallee
|
|
|
157
166
|
allowed_payment_method_configurations == o.allowed_payment_method_configurations &&
|
|
158
167
|
failed_payment_suspension_period == o.failed_payment_suspension_period &&
|
|
159
168
|
name == o.name &&
|
|
169
|
+
product_locked == o.product_locked &&
|
|
160
170
|
sort_order == o.sort_order &&
|
|
161
171
|
state == o.state &&
|
|
162
172
|
reference == o.reference
|
|
@@ -171,7 +181,7 @@ module Wallee
|
|
|
171
181
|
# Calculates hash code according to all attributes.
|
|
172
182
|
# @return [Fixnum] Hash code
|
|
173
183
|
def hash
|
|
174
|
-
[allowed_payment_method_configurations, failed_payment_suspension_period, name, sort_order, state, reference].hash
|
|
184
|
+
[allowed_payment_method_configurations, failed_payment_suspension_period, name, product_locked, sort_order, state, reference].hash
|
|
175
185
|
end
|
|
176
186
|
|
|
177
187
|
# Builds the object from hash
|