wallee-ruby-sdk 2.2.3 → 2.2.4
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 +17 -5
- data/lib/wallee-ruby-sdk/api/payment_terminal_till_service_api.rb +99 -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 +126 -0
- data/lib/wallee-ruby-sdk/api_client.rb +5 -3
- 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_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_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/charge_attempt.rb +11 -1
- data/lib/wallee-ruby-sdk/models/payment_connector_configuration.rb +13 -1
- 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_creation.rb +216 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription.rb +51 -7
- data/lib/wallee-ruby-sdk/models/shopify_subscription_address.rb +0 -60
- data/lib/wallee-ruby-sdk/models/shopify_subscription_address_create.rb +546 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_creation_request.rb +353 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_model_billing_configuration.rb +261 -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/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/subscription.rb +11 -1
- data/lib/wallee-ruby-sdk/models/subscription_charge.rb +48 -0
- data/lib/wallee-ruby-sdk/models/subscription_charge_create.rb +48 -0
- data/lib/wallee-ruby-sdk/models/subscription_create_request.rb +1 -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/transaction.rb +69 -1
- 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/webhook_url.rb +24 -0
- 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/wallee-ruby-sdk.gemspec +3 -2
- metadata +45 -14
@@ -29,6 +29,12 @@ module Wallee
|
|
29
29
|
# This property is true when all accounts in the hierarchy are active or restricted active.
|
30
30
|
attr_accessor :active_or_restricted_active
|
31
31
|
|
32
|
+
# The ID of the user who created this entity.
|
33
|
+
attr_accessor :created_by
|
34
|
+
|
35
|
+
# The date and time when this entity was created.
|
36
|
+
attr_accessor :created_on
|
37
|
+
|
32
38
|
# The database in which the space's data are stored in.
|
33
39
|
attr_accessor :database
|
34
40
|
|
@@ -41,6 +47,9 @@ module Wallee
|
|
41
47
|
# The ID is the primary key of the entity. The ID identifies the entity uniquely.
|
42
48
|
attr_accessor :id
|
43
49
|
|
50
|
+
#
|
51
|
+
attr_accessor :last_modified_date
|
52
|
+
|
44
53
|
# The space name is used internally to identify the space in administrative interfaces. For example it is used within search fields and hence it should be distinct and descriptive.
|
45
54
|
attr_accessor :name
|
46
55
|
|
@@ -77,10 +86,13 @@ module Wallee
|
|
77
86
|
:'account' => :'account',
|
78
87
|
:'active' => :'active',
|
79
88
|
:'active_or_restricted_active' => :'activeOrRestrictedActive',
|
89
|
+
:'created_by' => :'createdBy',
|
90
|
+
:'created_on' => :'createdOn',
|
80
91
|
:'database' => :'database',
|
81
92
|
:'deleted_by' => :'deletedBy',
|
82
93
|
:'deleted_on' => :'deletedOn',
|
83
94
|
:'id' => :'id',
|
95
|
+
:'last_modified_date' => :'lastModifiedDate',
|
84
96
|
:'name' => :'name',
|
85
97
|
:'planned_purge_date' => :'plannedPurgeDate',
|
86
98
|
:'postal_address' => :'postalAddress',
|
@@ -100,10 +112,13 @@ module Wallee
|
|
100
112
|
:'account' => :'Account',
|
101
113
|
:'active' => :'BOOLEAN',
|
102
114
|
:'active_or_restricted_active' => :'BOOLEAN',
|
115
|
+
:'created_by' => :'Integer',
|
116
|
+
:'created_on' => :'DateTime',
|
103
117
|
:'database' => :'TenantDatabase',
|
104
118
|
:'deleted_by' => :'Integer',
|
105
119
|
:'deleted_on' => :'DateTime',
|
106
120
|
:'id' => :'Integer',
|
121
|
+
:'last_modified_date' => :'DateTime',
|
107
122
|
:'name' => :'String',
|
108
123
|
:'planned_purge_date' => :'DateTime',
|
109
124
|
:'postal_address' => :'SpaceAddress',
|
@@ -137,6 +152,14 @@ module Wallee
|
|
137
152
|
self.active_or_restricted_active = attributes[:'activeOrRestrictedActive']
|
138
153
|
end
|
139
154
|
|
155
|
+
if attributes.has_key?(:'createdBy')
|
156
|
+
self.created_by = attributes[:'createdBy']
|
157
|
+
end
|
158
|
+
|
159
|
+
if attributes.has_key?(:'createdOn')
|
160
|
+
self.created_on = attributes[:'createdOn']
|
161
|
+
end
|
162
|
+
|
140
163
|
if attributes.has_key?(:'database')
|
141
164
|
self.database = attributes[:'database']
|
142
165
|
end
|
@@ -153,6 +176,10 @@ module Wallee
|
|
153
176
|
self.id = attributes[:'id']
|
154
177
|
end
|
155
178
|
|
179
|
+
if attributes.has_key?(:'lastModifiedDate')
|
180
|
+
self.last_modified_date = attributes[:'lastModifiedDate']
|
181
|
+
end
|
182
|
+
|
156
183
|
if attributes.has_key?(:'name')
|
157
184
|
self.name = attributes[:'name']
|
158
185
|
end
|
@@ -241,10 +268,13 @@ module Wallee
|
|
241
268
|
account == o.account &&
|
242
269
|
active == o.active &&
|
243
270
|
active_or_restricted_active == o.active_or_restricted_active &&
|
271
|
+
created_by == o.created_by &&
|
272
|
+
created_on == o.created_on &&
|
244
273
|
database == o.database &&
|
245
274
|
deleted_by == o.deleted_by &&
|
246
275
|
deleted_on == o.deleted_on &&
|
247
276
|
id == o.id &&
|
277
|
+
last_modified_date == o.last_modified_date &&
|
248
278
|
name == o.name &&
|
249
279
|
planned_purge_date == o.planned_purge_date &&
|
250
280
|
postal_address == o.postal_address &&
|
@@ -266,7 +296,7 @@ module Wallee
|
|
266
296
|
# Calculates hash code according to all attributes.
|
267
297
|
# @return [Fixnum] Hash code
|
268
298
|
def hash
|
269
|
-
[account, active, active_or_restricted_active, database, deleted_by, deleted_on, id, name, planned_purge_date, postal_address, primary_currency, request_limit, restricted_active, state, technical_contact_addresses, time_zone, version].hash
|
299
|
+
[account, active, active_or_restricted_active, created_by, created_on, database, deleted_by, deleted_on, id, last_modified_date, name, planned_purge_date, postal_address, primary_currency, request_limit, restricted_active, state, technical_contact_addresses, time_zone, version].hash
|
270
300
|
end
|
271
301
|
|
272
302
|
# Builds the object from hash
|
@@ -20,6 +20,9 @@ require 'date'
|
|
20
20
|
module Wallee
|
21
21
|
#
|
22
22
|
class SpaceCreate
|
23
|
+
#
|
24
|
+
attr_accessor :last_modified_date
|
25
|
+
|
23
26
|
# The space name is used internally to identify the space in administrative interfaces. For example it is used within search fields and hence it should be distinct and descriptive.
|
24
27
|
attr_accessor :name
|
25
28
|
|
@@ -47,6 +50,7 @@ module Wallee
|
|
47
50
|
# Attribute mapping from ruby-style variable name to JSON key.
|
48
51
|
def self.attribute_map
|
49
52
|
{
|
53
|
+
:'last_modified_date' => :'lastModifiedDate',
|
50
54
|
:'name' => :'name',
|
51
55
|
:'postal_address' => :'postalAddress',
|
52
56
|
:'primary_currency' => :'primaryCurrency',
|
@@ -61,6 +65,7 @@ module Wallee
|
|
61
65
|
# Attribute type mapping.
|
62
66
|
def self.swagger_types
|
63
67
|
{
|
68
|
+
:'last_modified_date' => :'DateTime',
|
64
69
|
:'name' => :'String',
|
65
70
|
:'postal_address' => :'SpaceAddressCreate',
|
66
71
|
:'primary_currency' => :'String',
|
@@ -80,6 +85,10 @@ module Wallee
|
|
80
85
|
# convert string to symbol for hash key
|
81
86
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
82
87
|
|
88
|
+
if attributes.has_key?(:'lastModifiedDate')
|
89
|
+
self.last_modified_date = attributes[:'lastModifiedDate']
|
90
|
+
end
|
91
|
+
|
83
92
|
if attributes.has_key?(:'name')
|
84
93
|
self.name = attributes[:'name']
|
85
94
|
end
|
@@ -162,6 +171,7 @@ module Wallee
|
|
162
171
|
def ==(o)
|
163
172
|
return true if self.equal?(o)
|
164
173
|
self.class == o.class &&
|
174
|
+
last_modified_date == o.last_modified_date &&
|
165
175
|
name == o.name &&
|
166
176
|
postal_address == o.postal_address &&
|
167
177
|
primary_currency == o.primary_currency &&
|
@@ -181,7 +191,7 @@ module Wallee
|
|
181
191
|
# Calculates hash code according to all attributes.
|
182
192
|
# @return [Fixnum] Hash code
|
183
193
|
def hash
|
184
|
-
[name, postal_address, primary_currency, request_limit, state, technical_contact_addresses, time_zone, account].hash
|
194
|
+
[last_modified_date, name, postal_address, primary_currency, request_limit, state, technical_contact_addresses, time_zone, account].hash
|
185
195
|
end
|
186
196
|
|
187
197
|
# Builds the object from hash
|
@@ -20,6 +20,9 @@ require 'date'
|
|
20
20
|
module Wallee
|
21
21
|
#
|
22
22
|
class SpaceUpdate
|
23
|
+
#
|
24
|
+
attr_accessor :last_modified_date
|
25
|
+
|
23
26
|
# The space name is used internally to identify the space in administrative interfaces. For example it is used within search fields and hence it should be distinct and descriptive.
|
24
27
|
attr_accessor :name
|
25
28
|
|
@@ -50,6 +53,7 @@ module Wallee
|
|
50
53
|
# Attribute mapping from ruby-style variable name to JSON key.
|
51
54
|
def self.attribute_map
|
52
55
|
{
|
56
|
+
:'last_modified_date' => :'lastModifiedDate',
|
53
57
|
:'name' => :'name',
|
54
58
|
:'postal_address' => :'postalAddress',
|
55
59
|
:'primary_currency' => :'primaryCurrency',
|
@@ -65,6 +69,7 @@ module Wallee
|
|
65
69
|
# Attribute type mapping.
|
66
70
|
def self.swagger_types
|
67
71
|
{
|
72
|
+
:'last_modified_date' => :'DateTime',
|
68
73
|
:'name' => :'String',
|
69
74
|
:'postal_address' => :'SpaceAddressCreate',
|
70
75
|
:'primary_currency' => :'String',
|
@@ -85,6 +90,10 @@ module Wallee
|
|
85
90
|
# convert string to symbol for hash key
|
86
91
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
87
92
|
|
93
|
+
if attributes.has_key?(:'lastModifiedDate')
|
94
|
+
self.last_modified_date = attributes[:'lastModifiedDate']
|
95
|
+
end
|
96
|
+
|
88
97
|
if attributes.has_key?(:'name')
|
89
98
|
self.name = attributes[:'name']
|
90
99
|
end
|
@@ -176,6 +185,7 @@ module Wallee
|
|
176
185
|
def ==(o)
|
177
186
|
return true if self.equal?(o)
|
178
187
|
self.class == o.class &&
|
188
|
+
last_modified_date == o.last_modified_date &&
|
179
189
|
name == o.name &&
|
180
190
|
postal_address == o.postal_address &&
|
181
191
|
primary_currency == o.primary_currency &&
|
@@ -196,7 +206,7 @@ module Wallee
|
|
196
206
|
# Calculates hash code according to all attributes.
|
197
207
|
# @return [Fixnum] Hash code
|
198
208
|
def hash
|
199
|
-
[name, postal_address, primary_currency, request_limit, state, technical_contact_addresses, time_zone, id, version].hash
|
209
|
+
[last_modified_date, name, postal_address, primary_currency, request_limit, state, technical_contact_addresses, time_zone, id, version].hash
|
200
210
|
end
|
201
211
|
|
202
212
|
# Builds the object from hash
|
@@ -29,6 +29,9 @@ module Wallee
|
|
29
29
|
#
|
30
30
|
attr_accessor :created_on
|
31
31
|
|
32
|
+
#
|
33
|
+
attr_accessor :current_product_version
|
34
|
+
|
32
35
|
#
|
33
36
|
attr_accessor :description
|
34
37
|
|
@@ -83,6 +86,7 @@ module Wallee
|
|
83
86
|
:'activated_on' => :'activatedOn',
|
84
87
|
:'affiliate' => :'affiliate',
|
85
88
|
:'created_on' => :'createdOn',
|
89
|
+
:'current_product_version' => :'currentProductVersion',
|
86
90
|
:'description' => :'description',
|
87
91
|
:'id' => :'id',
|
88
92
|
:'initialized_on' => :'initializedOn',
|
@@ -108,6 +112,7 @@ module Wallee
|
|
108
112
|
:'activated_on' => :'DateTime',
|
109
113
|
:'affiliate' => :'SubscriptionAffiliate',
|
110
114
|
:'created_on' => :'DateTime',
|
115
|
+
:'current_product_version' => :'SubscriptionProductVersion',
|
111
116
|
:'description' => :'String',
|
112
117
|
:'id' => :'Integer',
|
113
118
|
:'initialized_on' => :'DateTime',
|
@@ -147,6 +152,10 @@ module Wallee
|
|
147
152
|
self.created_on = attributes[:'createdOn']
|
148
153
|
end
|
149
154
|
|
155
|
+
if attributes.has_key?(:'currentProductVersion')
|
156
|
+
self.current_product_version = attributes[:'currentProductVersion']
|
157
|
+
end
|
158
|
+
|
150
159
|
if attributes.has_key?(:'description')
|
151
160
|
self.description = attributes[:'description']
|
152
161
|
end
|
@@ -263,6 +272,7 @@ module Wallee
|
|
263
272
|
activated_on == o.activated_on &&
|
264
273
|
affiliate == o.affiliate &&
|
265
274
|
created_on == o.created_on &&
|
275
|
+
current_product_version == o.current_product_version &&
|
266
276
|
description == o.description &&
|
267
277
|
id == o.id &&
|
268
278
|
initialized_on == o.initialized_on &&
|
@@ -290,7 +300,7 @@ module Wallee
|
|
290
300
|
# Calculates hash code according to all attributes.
|
291
301
|
# @return [Fixnum] Hash code
|
292
302
|
def hash
|
293
|
-
[activated_on, affiliate, created_on, description, id, initialized_on, language, linked_space_id, planned_purge_date, planned_termination_date, reference, state, subscriber, terminated_by, terminated_on, terminating_on, termination_scheduled_on, token, version].hash
|
303
|
+
[activated_on, affiliate, created_on, current_product_version, description, id, initialized_on, language, linked_space_id, planned_purge_date, planned_termination_date, reference, state, subscriber, terminated_by, terminated_on, terminating_on, termination_scheduled_on, token, version].hash
|
294
304
|
end
|
295
305
|
|
296
306
|
# Builds the object from hash
|
@@ -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)
|
@@ -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)
|
@@ -77,6 +77,9 @@ module Wallee
|
|
77
77
|
#
|
78
78
|
attr_accessor :state
|
79
79
|
|
80
|
+
# Strategy that is used for tax calculation in fees.
|
81
|
+
attr_accessor :tax_calculation
|
82
|
+
|
80
83
|
# The version number indicates the version of the entity. The version is incremented whenever the entity is changed.
|
81
84
|
attr_accessor :version
|
82
85
|
|
@@ -102,6 +105,7 @@ module Wallee
|
|
102
105
|
:'retiring_finished_on' => :'retiringFinishedOn',
|
103
106
|
:'retiring_started_on' => :'retiringStartedOn',
|
104
107
|
:'state' => :'state',
|
108
|
+
:'tax_calculation' => :'taxCalculation',
|
105
109
|
:'version' => :'version'
|
106
110
|
}
|
107
111
|
end
|
@@ -128,6 +132,7 @@ module Wallee
|
|
128
132
|
:'retiring_finished_on' => :'DateTime',
|
129
133
|
:'retiring_started_on' => :'DateTime',
|
130
134
|
:'state' => :'SubscriptionProductVersionState',
|
135
|
+
:'tax_calculation' => :'TaxCalculation',
|
131
136
|
:'version' => :'Integer'
|
132
137
|
}
|
133
138
|
end
|
@@ -218,6 +223,10 @@ module Wallee
|
|
218
223
|
self.state = attributes[:'state']
|
219
224
|
end
|
220
225
|
|
226
|
+
if attributes.has_key?(:'taxCalculation')
|
227
|
+
self.tax_calculation = attributes[:'taxCalculation']
|
228
|
+
end
|
229
|
+
|
221
230
|
if attributes.has_key?(:'version')
|
222
231
|
self.version = attributes[:'version']
|
223
232
|
end
|
@@ -275,6 +284,7 @@ module Wallee
|
|
275
284
|
retiring_finished_on == o.retiring_finished_on &&
|
276
285
|
retiring_started_on == o.retiring_started_on &&
|
277
286
|
state == o.state &&
|
287
|
+
tax_calculation == o.tax_calculation &&
|
278
288
|
version == o.version
|
279
289
|
end
|
280
290
|
|
@@ -287,7 +297,7 @@ module Wallee
|
|
287
297
|
# Calculates hash code according to all attributes.
|
288
298
|
# @return [Fixnum] Hash code
|
289
299
|
def hash
|
290
|
-
[activated_on, billing_cycle, comment, created_on, default_currency, enabled_currencies, id, increment_number, linked_space_id, minimal_number_of_periods, name, number_of_notice_periods, obsoleted_on, planned_purge_date, product, reference, retiring_finished_on, retiring_started_on, state, version].hash
|
300
|
+
[activated_on, billing_cycle, comment, created_on, default_currency, enabled_currencies, id, increment_number, linked_space_id, minimal_number_of_periods, name, number_of_notice_periods, obsoleted_on, planned_purge_date, product, reference, retiring_finished_on, retiring_started_on, state, tax_calculation, version].hash
|
291
301
|
end
|
292
302
|
|
293
303
|
# Builds the object from hash
|