wallee-ruby-sdk 3.0.0 → 3.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/wallee-ruby-sdk.rb +1 -0
- data/lib/wallee-ruby-sdk/api/token_service_api.rb +63 -0
- data/lib/wallee-ruby-sdk/models/abstract_subscription_product_active.rb +11 -1
- 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/payment_contract.rb +1 -25
- data/lib/wallee-ruby-sdk/models/payment_link.rb +1 -25
- data/lib/wallee-ruby-sdk/models/payment_link_create.rb +1 -29
- data/lib/wallee-ruby-sdk/models/payment_terminal_location.rb +1 -11
- 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/shopify_subscriber.rb +1 -1
- data/lib/wallee-ruby-sdk/models/shopify_subscriber_active.rb +1 -1
- data/lib/wallee-ruby-sdk/models/shopify_subscription_creation_request.rb +1 -1
- data/lib/wallee-ruby-sdk/models/shopify_subscription_model_billing_configuration.rb +11 -1
- data/lib/wallee-ruby-sdk/models/shopify_subscription_version.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_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 +1 -1
- data/lib/wallee-ruby-sdk/models/subscription_charge_create.rb +1 -1
- data/lib/wallee-ruby-sdk/models/subscription_ledger_entry.rb +1 -1
- 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_create.rb +11 -1
- 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/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7751c50d8a52dcd233f7c3d7a249ab13779f9dc80a9166f7cfd456af021fc727
|
4
|
+
data.tar.gz: 2f0f7f6ba1df8fbced32a0877d8260da3ce66cc2e33116a227584472f7e3b11f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da9499cd0cff29657fcdc0604c0cbb279d4879be46363008d0e98979b3db2c54aa761d5beffadf84cb229d74b6c7f2140a7f2617c8f2704b5c56e573f57bbee3
|
7
|
+
data.tar.gz: c22cfa2b81fb20d94a48d801c194d70006fd0740d74c6e16772added93c326768b9714cd3c4fe9111d55537dfa715ccabaac044c2484c7928ede038e8f8a9155
|
data/lib/wallee-ruby-sdk.rb
CHANGED
@@ -217,6 +217,7 @@ require 'wallee-ruby-sdk/models/rest_country_state'
|
|
217
217
|
require 'wallee-ruby-sdk/models/rest_currency'
|
218
218
|
require 'wallee-ruby-sdk/models/rest_language'
|
219
219
|
require 'wallee-ruby-sdk/models/role'
|
220
|
+
require 'wallee-ruby-sdk/models/role_state'
|
220
221
|
require 'wallee-ruby-sdk/models/sales_channel'
|
221
222
|
require 'wallee-ruby-sdk/models/scope'
|
222
223
|
require 'wallee-ruby-sdk/models/server_error'
|
@@ -397,6 +397,69 @@ module Wallee
|
|
397
397
|
return data, status_code, headers
|
398
398
|
end
|
399
399
|
|
400
|
+
# Process Transaction
|
401
|
+
# This operation processes the given transaction by using the token associated with the transaction.
|
402
|
+
# @param space_id
|
403
|
+
# @param transaction_id The id of the transaction for which we want to check if the token can be created or not.
|
404
|
+
# @param [Hash] opts the optional parameters
|
405
|
+
# @return [Charge]
|
406
|
+
def process_transaction(space_id, transaction_id, opts = {})
|
407
|
+
data, _status_code, _headers = process_transaction_with_http_info(space_id, transaction_id, opts)
|
408
|
+
return data
|
409
|
+
end
|
410
|
+
|
411
|
+
# Process Transaction
|
412
|
+
# This operation processes the given transaction by using the token associated with the transaction.
|
413
|
+
# @param space_id
|
414
|
+
# @param transaction_id The id of the transaction for which we want to check if the token can be created or not.
|
415
|
+
# @param [Hash] opts the optional parameters
|
416
|
+
# @return [Array<(Charge, Fixnum, Hash)>] Charge data, response status code and response headers
|
417
|
+
def process_transaction_with_http_info(space_id, transaction_id, opts = {})
|
418
|
+
if @api_client.config.debugging
|
419
|
+
@api_client.config.logger.debug "Calling API: TokenService.process_transaction ..."
|
420
|
+
end
|
421
|
+
# verify the required parameter 'space_id' is set
|
422
|
+
fail ArgumentError, "Missing the required parameter 'space_id' when calling TokenService.process_transaction" if space_id.nil?
|
423
|
+
# verify the required parameter 'transaction_id' is set
|
424
|
+
fail ArgumentError, "Missing the required parameter 'transaction_id' when calling TokenService.process_transaction" if transaction_id.nil?
|
425
|
+
# resource path
|
426
|
+
local_var_path = "/token/process-transaction".sub('{format}','json')
|
427
|
+
|
428
|
+
# query parameters
|
429
|
+
query_params = {}
|
430
|
+
query_params[:'spaceId'] = space_id
|
431
|
+
query_params[:'transactionId'] = transaction_id
|
432
|
+
|
433
|
+
# header parameters
|
434
|
+
header_params = {}
|
435
|
+
|
436
|
+
# HTTP header 'Accept' (if needed)
|
437
|
+
local_header_accept = []
|
438
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
439
|
+
|
440
|
+
# HTTP header 'Content-Type'
|
441
|
+
local_header_content_type = []
|
442
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
443
|
+
|
444
|
+
# form parameters
|
445
|
+
form_params = {}
|
446
|
+
|
447
|
+
# http body (model)
|
448
|
+
post_body = nil
|
449
|
+
auth_names = []
|
450
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
451
|
+
:header_params => header_params,
|
452
|
+
:query_params => query_params,
|
453
|
+
:form_params => form_params,
|
454
|
+
:body => post_body,
|
455
|
+
:auth_names => auth_names,
|
456
|
+
:return_type => 'Charge')
|
457
|
+
if @api_client.config.debugging
|
458
|
+
@api_client.config.logger.debug "API called: TokenService#process_transaction\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
459
|
+
end
|
460
|
+
return data, status_code, headers
|
461
|
+
end
|
462
|
+
|
400
463
|
# Read
|
401
464
|
# Reads the entity with the given 'id' and returns it.
|
402
465
|
# @param space_id
|
@@ -28,6 +28,9 @@ module Wallee
|
|
28
28
|
# 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.
|
29
29
|
attr_accessor :name
|
30
30
|
|
31
|
+
# Marks the product as locked. Meaning that customer can not change away from this product or change to this product later on.
|
32
|
+
attr_accessor :product_locked
|
33
|
+
|
31
34
|
# The sort order controls in which order the product is listed. The sort order is used to order the products in ascending order.
|
32
35
|
attr_accessor :sort_order
|
33
36
|
|
@@ -40,6 +43,7 @@ module Wallee
|
|
40
43
|
:'allowed_payment_method_configurations' => :'allowedPaymentMethodConfigurations',
|
41
44
|
:'failed_payment_suspension_period' => :'failedPaymentSuspensionPeriod',
|
42
45
|
:'name' => :'name',
|
46
|
+
:'product_locked' => :'productLocked',
|
43
47
|
:'sort_order' => :'sortOrder',
|
44
48
|
:'state' => :'state'
|
45
49
|
}
|
@@ -51,6 +55,7 @@ module Wallee
|
|
51
55
|
:'allowed_payment_method_configurations' => :'Array<Integer>',
|
52
56
|
:'failed_payment_suspension_period' => :'String',
|
53
57
|
:'name' => :'String',
|
58
|
+
:'product_locked' => :'BOOLEAN',
|
54
59
|
:'sort_order' => :'Integer',
|
55
60
|
:'state' => :'SubscriptionProductState'
|
56
61
|
}
|
@@ -78,6 +83,10 @@ module Wallee
|
|
78
83
|
self.name = attributes[:'name']
|
79
84
|
end
|
80
85
|
|
86
|
+
if attributes.has_key?(:'productLocked')
|
87
|
+
self.product_locked = attributes[:'productLocked']
|
88
|
+
end
|
89
|
+
|
81
90
|
if attributes.has_key?(:'sortOrder')
|
82
91
|
self.sort_order = attributes[:'sortOrder']
|
83
92
|
end
|
@@ -123,6 +132,7 @@ module Wallee
|
|
123
132
|
allowed_payment_method_configurations == o.allowed_payment_method_configurations &&
|
124
133
|
failed_payment_suspension_period == o.failed_payment_suspension_period &&
|
125
134
|
name == o.name &&
|
135
|
+
product_locked == o.product_locked &&
|
126
136
|
sort_order == o.sort_order &&
|
127
137
|
state == o.state
|
128
138
|
end
|
@@ -136,7 +146,7 @@ module Wallee
|
|
136
146
|
# Calculates hash code according to all attributes.
|
137
147
|
# @return [Fixnum] Hash code
|
138
148
|
def hash
|
139
|
-
[allowed_payment_method_configurations, failed_payment_suspension_period, name, sort_order, state].hash
|
149
|
+
[allowed_payment_method_configurations, failed_payment_suspension_period, name, product_locked, sort_order, state].hash
|
140
150
|
end
|
141
151
|
|
142
152
|
# Builds the object from hash
|
@@ -50,7 +50,7 @@ module Wallee
|
|
50
50
|
# The environment in which this case will be processed. There must be a debt collector configuration present which supports the chosen environment.
|
51
51
|
attr_accessor :environment
|
52
52
|
|
53
|
-
#
|
53
|
+
# 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.
|
54
54
|
attr_accessor :external_id
|
55
55
|
|
56
56
|
# The failed on date indicates when the case is failed on.
|
@@ -47,7 +47,7 @@ module Wallee
|
|
47
47
|
# The collector configuration determines how the debt collection case is processed.
|
48
48
|
attr_accessor :collector_configuration
|
49
49
|
|
50
|
-
#
|
50
|
+
# 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.
|
51
51
|
attr_accessor :external_id
|
52
52
|
|
53
53
|
# The case reference is used in the communication with the debtor. It should be unique and it should be linkable with the source of the debt collection case.
|
@@ -38,7 +38,7 @@ module Wallee
|
|
38
38
|
# The created on date indicates the date on which the entity was stored into the database.
|
39
39
|
attr_accessor :created_on
|
40
40
|
|
41
|
-
#
|
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.
|
42
42
|
attr_accessor :external_id
|
43
43
|
|
44
44
|
# The ID is the primary key of the entity. The ID identifies the entity uniquely.
|
@@ -180,39 +180,15 @@ module Wallee
|
|
180
180
|
# @return Array for valid properties with the reasons
|
181
181
|
def list_invalid_properties
|
182
182
|
invalid_properties = Array.new
|
183
|
-
if !@external_id.nil? && @external_id.to_s.length > 100
|
184
|
-
invalid_properties.push('invalid value for "external_id", the character length must be smaller than or equal to 100.')
|
185
|
-
end
|
186
|
-
|
187
|
-
if !@external_id.nil? && @external_id.to_s.length < 1
|
188
|
-
invalid_properties.push('invalid value for "external_id", the character length must be great than or equal to 1.')
|
189
|
-
end
|
190
|
-
|
191
183
|
invalid_properties
|
192
184
|
end
|
193
185
|
|
194
186
|
# Check to see if the all the properties in the model are valid
|
195
187
|
# @return true if the model is valid
|
196
188
|
def valid?
|
197
|
-
return false if !@external_id.nil? && @external_id.to_s.length > 100
|
198
|
-
return false if !@external_id.nil? && @external_id.to_s.length < 1
|
199
189
|
true
|
200
190
|
end
|
201
191
|
|
202
|
-
# Custom attribute writer method with validation
|
203
|
-
# @param [Object] external_id Value to be assigned
|
204
|
-
def external_id=(external_id)
|
205
|
-
if !external_id.nil? && external_id.to_s.length > 100
|
206
|
-
fail ArgumentError, 'invalid value for "external_id", the character length must be smaller than or equal to 100.'
|
207
|
-
end
|
208
|
-
|
209
|
-
if !external_id.nil? && external_id.to_s.length < 1
|
210
|
-
fail ArgumentError, 'invalid value for "external_id", the character length must be great than or equal to 1.'
|
211
|
-
end
|
212
|
-
|
213
|
-
@external_id = external_id
|
214
|
-
end
|
215
|
-
|
216
192
|
# Checks equality by comparing each attribute.
|
217
193
|
# @param [Object] Object to be compared
|
218
194
|
def ==(o)
|
@@ -38,7 +38,7 @@ module Wallee
|
|
38
38
|
# The currency defines in which currency the payment is executed in. If no currency is defined it has to be specified within the request parameter 'currency'.
|
39
39
|
attr_accessor :currency
|
40
40
|
|
41
|
-
#
|
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.
|
42
42
|
attr_accessor :external_id
|
43
43
|
|
44
44
|
# The ID is the primary key of the entity. The ID identifies the entity uniquely.
|
@@ -220,14 +220,6 @@ module Wallee
|
|
220
220
|
# @return Array for valid properties with the reasons
|
221
221
|
def list_invalid_properties
|
222
222
|
invalid_properties = Array.new
|
223
|
-
if !@external_id.nil? && @external_id.to_s.length > 100
|
224
|
-
invalid_properties.push('invalid value for "external_id", the character length must be smaller than or equal to 100.')
|
225
|
-
end
|
226
|
-
|
227
|
-
if !@external_id.nil? && @external_id.to_s.length < 1
|
228
|
-
invalid_properties.push('invalid value for "external_id", the character length must be great than or equal to 1.')
|
229
|
-
end
|
230
|
-
|
231
223
|
if !@name.nil? && @name.to_s.length > 100
|
232
224
|
invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 100.')
|
233
225
|
end
|
@@ -238,26 +230,10 @@ module Wallee
|
|
238
230
|
# Check to see if the all the properties in the model are valid
|
239
231
|
# @return true if the model is valid
|
240
232
|
def valid?
|
241
|
-
return false if !@external_id.nil? && @external_id.to_s.length > 100
|
242
|
-
return false if !@external_id.nil? && @external_id.to_s.length < 1
|
243
233
|
return false if !@name.nil? && @name.to_s.length > 100
|
244
234
|
true
|
245
235
|
end
|
246
236
|
|
247
|
-
# Custom attribute writer method with validation
|
248
|
-
# @param [Object] external_id Value to be assigned
|
249
|
-
def external_id=(external_id)
|
250
|
-
if !external_id.nil? && external_id.to_s.length > 100
|
251
|
-
fail ArgumentError, 'invalid value for "external_id", the character length must be smaller than or equal to 100.'
|
252
|
-
end
|
253
|
-
|
254
|
-
if !external_id.nil? && external_id.to_s.length < 1
|
255
|
-
fail ArgumentError, 'invalid value for "external_id", the character length must be great than or equal to 1.'
|
256
|
-
end
|
257
|
-
|
258
|
-
@external_id = external_id
|
259
|
-
end
|
260
|
-
|
261
237
|
# Custom attribute writer method with validation
|
262
238
|
# @param [Object] name Value to be assigned
|
263
239
|
def name=(name)
|
@@ -56,7 +56,7 @@ module Wallee
|
|
56
56
|
#
|
57
57
|
attr_accessor :state
|
58
58
|
|
59
|
-
#
|
59
|
+
# 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.
|
60
60
|
attr_accessor :external_id
|
61
61
|
|
62
62
|
# The protection mode determines if the payment link is protected against tampering and in what way.
|
@@ -183,14 +183,6 @@ module Wallee
|
|
183
183
|
invalid_properties.push('invalid value for "external_id", external_id cannot be nil.')
|
184
184
|
end
|
185
185
|
|
186
|
-
if @external_id.to_s.length > 100
|
187
|
-
invalid_properties.push('invalid value for "external_id", the character length must be smaller than or equal to 100.')
|
188
|
-
end
|
189
|
-
|
190
|
-
if @external_id.to_s.length < 1
|
191
|
-
invalid_properties.push('invalid value for "external_id", the character length must be great than or equal to 1.')
|
192
|
-
end
|
193
|
-
|
194
186
|
invalid_properties
|
195
187
|
end
|
196
188
|
|
@@ -199,8 +191,6 @@ module Wallee
|
|
199
191
|
def valid?
|
200
192
|
return false if !@name.nil? && @name.to_s.length > 100
|
201
193
|
return false if @external_id.nil?
|
202
|
-
return false if @external_id.to_s.length > 100
|
203
|
-
return false if @external_id.to_s.length < 1
|
204
194
|
true
|
205
195
|
end
|
206
196
|
|
@@ -214,24 +204,6 @@ module Wallee
|
|
214
204
|
@name = name
|
215
205
|
end
|
216
206
|
|
217
|
-
# Custom attribute writer method with validation
|
218
|
-
# @param [Object] external_id Value to be assigned
|
219
|
-
def external_id=(external_id)
|
220
|
-
if external_id.nil?
|
221
|
-
fail ArgumentError, 'external_id cannot be nil'
|
222
|
-
end
|
223
|
-
|
224
|
-
if external_id.to_s.length > 100
|
225
|
-
fail ArgumentError, 'invalid value for "external_id", the character length must be smaller than or equal to 100.'
|
226
|
-
end
|
227
|
-
|
228
|
-
if external_id.to_s.length < 1
|
229
|
-
fail ArgumentError, 'invalid value for "external_id", the character length must be great than or equal to 1.'
|
230
|
-
end
|
231
|
-
|
232
|
-
@external_id = external_id
|
233
|
-
end
|
234
|
-
|
235
207
|
# Checks equality by comparing each attribute.
|
236
208
|
# @param [Object] Object to be compared
|
237
209
|
def ==(o)
|
@@ -23,9 +23,6 @@ module Wallee
|
|
23
23
|
#
|
24
24
|
attr_accessor :contact_address
|
25
25
|
|
26
|
-
#
|
27
|
-
attr_accessor :default_configuration
|
28
|
-
|
29
26
|
# The ID is the primary key of the entity. The ID identifies the entity uniquely.
|
30
27
|
attr_accessor :id
|
31
28
|
|
@@ -48,7 +45,6 @@ module Wallee
|
|
48
45
|
def self.attribute_map
|
49
46
|
{
|
50
47
|
:'contact_address' => :'contactAddress',
|
51
|
-
:'default_configuration' => :'defaultConfiguration',
|
52
48
|
:'id' => :'id',
|
53
49
|
:'linked_space_id' => :'linkedSpaceId',
|
54
50
|
:'name' => :'name',
|
@@ -62,7 +58,6 @@ module Wallee
|
|
62
58
|
def self.swagger_types
|
63
59
|
{
|
64
60
|
:'contact_address' => :'PaymentTerminalAddress',
|
65
|
-
:'default_configuration' => :'PaymentTerminalConfiguration',
|
66
61
|
:'id' => :'Integer',
|
67
62
|
:'linked_space_id' => :'Integer',
|
68
63
|
:'name' => :'String',
|
@@ -84,10 +79,6 @@ module Wallee
|
|
84
79
|
self.contact_address = attributes[:'contactAddress']
|
85
80
|
end
|
86
81
|
|
87
|
-
if attributes.has_key?(:'defaultConfiguration')
|
88
|
-
self.default_configuration = attributes[:'defaultConfiguration']
|
89
|
-
end
|
90
|
-
|
91
82
|
if attributes.has_key?(:'id')
|
92
83
|
self.id = attributes[:'id']
|
93
84
|
end
|
@@ -147,7 +138,6 @@ module Wallee
|
|
147
138
|
return true if self.equal?(o)
|
148
139
|
self.class == o.class &&
|
149
140
|
contact_address == o.contact_address &&
|
150
|
-
default_configuration == o.default_configuration &&
|
151
141
|
id == o.id &&
|
152
142
|
linked_space_id == o.linked_space_id &&
|
153
143
|
name == o.name &&
|
@@ -165,7 +155,7 @@ module Wallee
|
|
165
155
|
# Calculates hash code according to all attributes.
|
166
156
|
# @return [Fixnum] Hash code
|
167
157
|
def hash
|
168
|
-
[contact_address,
|
158
|
+
[contact_address, id, linked_space_id, name, planned_purge_date, state, version].hash
|
169
159
|
end
|
170
160
|
|
171
161
|
# Builds the object from hash
|
@@ -66,7 +66,7 @@ module Wallee
|
|
66
66
|
:'name' => :'DatabaseTranslatedString',
|
67
67
|
:'permissions' => :'Array<Permission>',
|
68
68
|
:'planned_purge_date' => :'DateTime',
|
69
|
-
:'state' => :'
|
69
|
+
:'state' => :'RoleState',
|
70
70
|
:'two_factor_required' => :'BOOLEAN',
|
71
71
|
:'version' => :'Integer'
|
72
72
|
}
|
@@ -0,0 +1,37 @@
|
|
1
|
+
=begin
|
2
|
+
The wallee API allows an easy interaction with the wallee web service.
|
3
|
+
|
4
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
you may not use this file except in compliance with the License.
|
6
|
+
You may obtain a copy of the License at
|
7
|
+
|
8
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
|
10
|
+
Unless required by applicable law or agreed to in writing, software
|
11
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
See the License for the specific language governing permissions and
|
14
|
+
limitations under the License.
|
15
|
+
|
16
|
+
=end
|
17
|
+
|
18
|
+
require 'date'
|
19
|
+
|
20
|
+
module Wallee
|
21
|
+
class RoleState
|
22
|
+
|
23
|
+
CREATE = 'CREATE'.freeze
|
24
|
+
ACTIVE = 'ACTIVE'.freeze
|
25
|
+
DELETING = 'DELETING'.freeze
|
26
|
+
DELETED = 'DELETED'.freeze
|
27
|
+
|
28
|
+
# Builds the enum from string
|
29
|
+
# @param [String] The enum value in the form of the string
|
30
|
+
# @return [String] The enum value
|
31
|
+
def build_from_hash(value)
|
32
|
+
constantValues = RoleState.constants.select { |c| RoleState::const_get(c) == value }
|
33
|
+
raise "Invalid ENUM value #{value} for class #RoleState" if constantValues.empty?
|
34
|
+
value
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
@@ -26,7 +26,7 @@ module Wallee
|
|
26
26
|
#
|
27
27
|
attr_accessor :email_address
|
28
28
|
|
29
|
-
#
|
29
|
+
# 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.
|
30
30
|
attr_accessor :external_id
|
31
31
|
|
32
32
|
# The ID is the primary key of the entity. The ID identifies the entity uniquely.
|
@@ -29,7 +29,7 @@ module Wallee
|
|
29
29
|
#
|
30
30
|
attr_accessor :email_address
|
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
|
#
|
@@ -29,7 +29,7 @@ module Wallee
|
|
29
29
|
#
|
30
30
|
attr_accessor :currency
|
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
|
#
|
@@ -29,6 +29,9 @@ module Wallee
|
|
29
29
|
# Define how frequently recurring orders should be created.
|
30
30
|
attr_accessor :billing_interval_unit
|
31
31
|
|
32
|
+
# This date will be used as basis to calculate the dates of recurring orders.
|
33
|
+
attr_accessor :billing_reference_date
|
34
|
+
|
32
35
|
# Define the weekday on which the recurring orders should be created.
|
33
36
|
attr_accessor :billing_weekday
|
34
37
|
|
@@ -50,6 +53,7 @@ module Wallee
|
|
50
53
|
:'billing_day_of_month' => :'billingDayOfMonth',
|
51
54
|
:'billing_interval_amount' => :'billingIntervalAmount',
|
52
55
|
:'billing_interval_unit' => :'billingIntervalUnit',
|
56
|
+
:'billing_reference_date' => :'billingReferenceDate',
|
53
57
|
:'billing_weekday' => :'billingWeekday',
|
54
58
|
:'maximal_billing_cycles' => :'maximalBillingCycles',
|
55
59
|
:'maximal_suspendable_cycles' => :'maximalSuspendableCycles',
|
@@ -64,6 +68,7 @@ module Wallee
|
|
64
68
|
:'billing_day_of_month' => :'Integer',
|
65
69
|
:'billing_interval_amount' => :'Integer',
|
66
70
|
:'billing_interval_unit' => :'ShopifySubscriptionBillingIntervalUnit',
|
71
|
+
:'billing_reference_date' => :'DateTime',
|
67
72
|
:'billing_weekday' => :'ShopifySubscriptionWeekday',
|
68
73
|
:'maximal_billing_cycles' => :'Integer',
|
69
74
|
:'maximal_suspendable_cycles' => :'Integer',
|
@@ -92,6 +97,10 @@ module Wallee
|
|
92
97
|
self.billing_interval_unit = attributes[:'billingIntervalUnit']
|
93
98
|
end
|
94
99
|
|
100
|
+
if attributes.has_key?(:'billingReferenceDate')
|
101
|
+
self.billing_reference_date = attributes[:'billingReferenceDate']
|
102
|
+
end
|
103
|
+
|
95
104
|
if attributes.has_key?(:'billingWeekday')
|
96
105
|
self.billing_weekday = attributes[:'billingWeekday']
|
97
106
|
end
|
@@ -134,6 +143,7 @@ module Wallee
|
|
134
143
|
billing_day_of_month == o.billing_day_of_month &&
|
135
144
|
billing_interval_amount == o.billing_interval_amount &&
|
136
145
|
billing_interval_unit == o.billing_interval_unit &&
|
146
|
+
billing_reference_date == o.billing_reference_date &&
|
137
147
|
billing_weekday == o.billing_weekday &&
|
138
148
|
maximal_billing_cycles == o.maximal_billing_cycles &&
|
139
149
|
maximal_suspendable_cycles == o.maximal_suspendable_cycles &&
|
@@ -150,7 +160,7 @@ module Wallee
|
|
150
160
|
# Calculates hash code according to all attributes.
|
151
161
|
# @return [Fixnum] Hash code
|
152
162
|
def hash
|
153
|
-
[billing_day_of_month, billing_interval_amount, billing_interval_unit, billing_weekday, maximal_billing_cycles, maximal_suspendable_cycles, minimal_billing_cycles, termination_billing_cycles].hash
|
163
|
+
[billing_day_of_month, billing_interval_amount, billing_interval_unit, billing_reference_date, billing_weekday, maximal_billing_cycles, maximal_suspendable_cycles, minimal_billing_cycles, termination_billing_cycles].hash
|
154
164
|
end
|
155
165
|
|
156
166
|
# Builds the object from hash
|
@@ -32,6 +32,9 @@ module Wallee
|
|
32
32
|
#
|
33
33
|
attr_accessor :billing_interval_unit
|
34
34
|
|
35
|
+
#
|
36
|
+
attr_accessor :billing_reference_date
|
37
|
+
|
35
38
|
#
|
36
39
|
attr_accessor :billing_weekday
|
37
40
|
|
@@ -108,6 +111,7 @@ module Wallee
|
|
108
111
|
:'billing_day_of_month' => :'billingDayOfMonth',
|
109
112
|
:'billing_interval_amount' => :'billingIntervalAmount',
|
110
113
|
:'billing_interval_unit' => :'billingIntervalUnit',
|
114
|
+
:'billing_reference_date' => :'billingReferenceDate',
|
111
115
|
:'billing_weekday' => :'billingWeekday',
|
112
116
|
:'created_by' => :'createdBy',
|
113
117
|
:'created_on' => :'createdOn',
|
@@ -141,6 +145,7 @@ module Wallee
|
|
141
145
|
:'billing_day_of_month' => :'Integer',
|
142
146
|
:'billing_interval_amount' => :'Integer',
|
143
147
|
:'billing_interval_unit' => :'ShopifySubscriptionBillingIntervalUnit',
|
148
|
+
:'billing_reference_date' => :'DateTime',
|
144
149
|
:'billing_weekday' => :'ShopifySubscriptionWeekday',
|
145
150
|
:'created_by' => :'Integer',
|
146
151
|
:'created_on' => :'DateTime',
|
@@ -191,6 +196,10 @@ module Wallee
|
|
191
196
|
self.billing_interval_unit = attributes[:'billingIntervalUnit']
|
192
197
|
end
|
193
198
|
|
199
|
+
if attributes.has_key?(:'billingReferenceDate')
|
200
|
+
self.billing_reference_date = attributes[:'billingReferenceDate']
|
201
|
+
end
|
202
|
+
|
194
203
|
if attributes.has_key?(:'billingWeekday')
|
195
204
|
self.billing_weekday = attributes[:'billingWeekday']
|
196
205
|
end
|
@@ -308,6 +317,7 @@ module Wallee
|
|
308
317
|
billing_day_of_month == o.billing_day_of_month &&
|
309
318
|
billing_interval_amount == o.billing_interval_amount &&
|
310
319
|
billing_interval_unit == o.billing_interval_unit &&
|
320
|
+
billing_reference_date == o.billing_reference_date &&
|
311
321
|
billing_weekday == o.billing_weekday &&
|
312
322
|
created_by == o.created_by &&
|
313
323
|
created_on == o.created_on &&
|
@@ -342,7 +352,7 @@ module Wallee
|
|
342
352
|
# Calculates hash code according to all attributes.
|
343
353
|
# @return [Fixnum] Hash code
|
344
354
|
def hash
|
345
|
-
[billing_address, billing_day_of_month, billing_interval_amount, billing_interval_unit, billing_weekday, created_by, created_on, currency, discharged_by, discharged_on, id, items, linked_space_id, maximal_billing_cycles, maximal_suspendable_cycles, minimal_billing_cycles, payment_gateway, shipping_address, shipping_rate, shop, state, store_order_confirmation_email_enabled, subscriber_suspension_allowed, subscription, termination_billing_cycles, token, version].hash
|
355
|
+
[billing_address, billing_day_of_month, billing_interval_amount, billing_interval_unit, billing_reference_date, billing_weekday, created_by, created_on, currency, discharged_by, discharged_on, id, items, linked_space_id, maximal_billing_cycles, maximal_suspendable_cycles, minimal_billing_cycles, payment_gateway, shipping_address, shipping_rate, shop, state, store_order_confirmation_email_enabled, subscriber_suspension_allowed, subscription, termination_billing_cycles, token, version].hash
|
346
356
|
end
|
347
357
|
|
348
358
|
# Builds the object from hash
|
@@ -35,7 +35,7 @@ module Wallee
|
|
35
35
|
# The email address is used to communicate with the subscriber. There can be only one subscriber per space with the same email address.
|
36
36
|
attr_accessor :email_address
|
37
37
|
|
38
|
-
#
|
38
|
+
# 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
39
|
attr_accessor :external_id
|
40
40
|
|
41
41
|
# The ID is the primary key of the entity. The ID identifies the entity uniquely.
|
@@ -50,7 +50,7 @@ module Wallee
|
|
50
50
|
#
|
51
51
|
attr_accessor :state
|
52
52
|
|
53
|
-
#
|
53
|
+
# 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.
|
54
54
|
attr_accessor :external_id
|
55
55
|
|
56
56
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -20,7 +20,7 @@ require 'date'
|
|
20
20
|
module Wallee
|
21
21
|
#
|
22
22
|
class SubscriptionAffiliate
|
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)
|
@@ -32,7 +32,7 @@ module Wallee
|
|
32
32
|
#
|
33
33
|
attr_accessor :state
|
34
34
|
|
35
|
-
#
|
35
|
+
# 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.
|
36
36
|
attr_accessor :external_id
|
37
37
|
|
38
38
|
#
|
@@ -113,14 +113,6 @@ module Wallee
|
|
113
113
|
invalid_properties.push('invalid value for "external_id", external_id cannot be nil.')
|
114
114
|
end
|
115
115
|
|
116
|
-
if @external_id.to_s.length > 100
|
117
|
-
invalid_properties.push('invalid value for "external_id", the character length must be smaller than or equal to 100.')
|
118
|
-
end
|
119
|
-
|
120
|
-
if @external_id.to_s.length < 1
|
121
|
-
invalid_properties.push('invalid value for "external_id", the character length must be great than or equal to 1.')
|
122
|
-
end
|
123
|
-
|
124
116
|
if @reference.nil?
|
125
117
|
invalid_properties.push('invalid value for "reference", reference cannot be nil.')
|
126
118
|
end
|
@@ -142,8 +134,6 @@ module Wallee
|
|
142
134
|
return false if !@name.nil? && @name.to_s.length > 255
|
143
135
|
return false if !@name.nil? && @name.to_s.length < 3
|
144
136
|
return false if @external_id.nil?
|
145
|
-
return false if @external_id.to_s.length > 100
|
146
|
-
return false if @external_id.to_s.length < 1
|
147
137
|
return false if @reference.nil?
|
148
138
|
return false if @reference.to_s.length > 100
|
149
139
|
return false if @reference.to_s.length < 3
|
@@ -164,24 +154,6 @@ module Wallee
|
|
164
154
|
@name = name
|
165
155
|
end
|
166
156
|
|
167
|
-
# Custom attribute writer method with validation
|
168
|
-
# @param [Object] external_id Value to be assigned
|
169
|
-
def external_id=(external_id)
|
170
|
-
if external_id.nil?
|
171
|
-
fail ArgumentError, 'external_id cannot be nil'
|
172
|
-
end
|
173
|
-
|
174
|
-
if external_id.to_s.length > 100
|
175
|
-
fail ArgumentError, 'invalid value for "external_id", the character length must be smaller than or equal to 100.'
|
176
|
-
end
|
177
|
-
|
178
|
-
if external_id.to_s.length < 1
|
179
|
-
fail ArgumentError, 'invalid value for "external_id", the character length must be great than or equal to 1.'
|
180
|
-
end
|
181
|
-
|
182
|
-
@external_id = external_id
|
183
|
-
end
|
184
|
-
|
185
157
|
# Custom attribute writer method with validation
|
186
158
|
# @param [Object] reference Value to be assigned
|
187
159
|
def reference=(reference)
|
@@ -20,7 +20,7 @@ require 'date'
|
|
20
20
|
module Wallee
|
21
21
|
#
|
22
22
|
class SubscriptionAffiliateDeleted
|
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)
|
@@ -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
|
#
|
@@ -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.
|
@@ -38,7 +38,7 @@ module Wallee
|
|
38
38
|
#
|
39
39
|
attr_accessor :discount_including_tax
|
40
40
|
|
41
|
-
#
|
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.
|
42
42
|
attr_accessor :external_id
|
43
43
|
|
44
44
|
# The ID is the primary key of the entity. The ID identifies the entity uniquely.
|
@@ -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
|
@@ -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
|
@@ -32,7 +32,7 @@ module Wallee
|
|
32
32
|
# When a token is enabled for one-click payments the buyer will be able to select the token within the iFrame or on the payment page to pay with the token. The usage of the token will reduce the number of steps the buyer has to go through. The buyer is linked via the customer ID on the transaction with the token. Means the token will be visible for buyers with the same customer ID. Additionally the payment method has to be configured to allow the one-click payments.
|
33
33
|
attr_accessor :enabled_for_one_click_payment
|
34
34
|
|
35
|
-
#
|
35
|
+
# 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.
|
36
36
|
attr_accessor :external_id
|
37
37
|
|
38
38
|
# The ID is the primary key of the entity. The ID identifies the entity uniquely.
|
@@ -166,14 +166,6 @@ module Wallee
|
|
166
166
|
invalid_properties.push('invalid value for "customer_email_address", the character length must be smaller than or equal to 150.')
|
167
167
|
end
|
168
168
|
|
169
|
-
if !@external_id.nil? && @external_id.to_s.length > 100
|
170
|
-
invalid_properties.push('invalid value for "external_id", the character length must be smaller than or equal to 100.')
|
171
|
-
end
|
172
|
-
|
173
|
-
if !@external_id.nil? && @external_id.to_s.length < 1
|
174
|
-
invalid_properties.push('invalid value for "external_id", the character length must be great than or equal to 1.')
|
175
|
-
end
|
176
|
-
|
177
169
|
if !@token_reference.nil? && @token_reference.to_s.length > 100
|
178
170
|
invalid_properties.push('invalid value for "token_reference", the character length must be smaller than or equal to 100.')
|
179
171
|
end
|
@@ -185,8 +177,6 @@ module Wallee
|
|
185
177
|
# @return true if the model is valid
|
186
178
|
def valid?
|
187
179
|
return false if !@customer_email_address.nil? && @customer_email_address.to_s.length > 150
|
188
|
-
return false if !@external_id.nil? && @external_id.to_s.length > 100
|
189
|
-
return false if !@external_id.nil? && @external_id.to_s.length < 1
|
190
180
|
return false if !@token_reference.nil? && @token_reference.to_s.length > 100
|
191
181
|
true
|
192
182
|
end
|
@@ -201,20 +191,6 @@ module Wallee
|
|
201
191
|
@customer_email_address = customer_email_address
|
202
192
|
end
|
203
193
|
|
204
|
-
# Custom attribute writer method with validation
|
205
|
-
# @param [Object] external_id Value to be assigned
|
206
|
-
def external_id=(external_id)
|
207
|
-
if !external_id.nil? && external_id.to_s.length > 100
|
208
|
-
fail ArgumentError, 'invalid value for "external_id", the character length must be smaller than or equal to 100.'
|
209
|
-
end
|
210
|
-
|
211
|
-
if !external_id.nil? && external_id.to_s.length < 1
|
212
|
-
fail ArgumentError, 'invalid value for "external_id", the character length must be great than or equal to 1.'
|
213
|
-
end
|
214
|
-
|
215
|
-
@external_id = external_id
|
216
|
-
end
|
217
|
-
|
218
194
|
# Custom attribute writer method with validation
|
219
195
|
# @param [Object] token_reference Value to be assigned
|
220
196
|
def token_reference=(token_reference)
|
@@ -38,7 +38,7 @@ module Wallee
|
|
38
38
|
# Use something that it is easy to identify and may help you find the token (e.g. customer id, email address).
|
39
39
|
attr_accessor :token_reference
|
40
40
|
|
41
|
-
#
|
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.
|
42
42
|
attr_accessor :external_id
|
43
43
|
|
44
44
|
#
|
@@ -129,14 +129,6 @@ module Wallee
|
|
129
129
|
invalid_properties.push('invalid value for "external_id", external_id cannot be nil.')
|
130
130
|
end
|
131
131
|
|
132
|
-
if @external_id.to_s.length > 100
|
133
|
-
invalid_properties.push('invalid value for "external_id", the character length must be smaller than or equal to 100.')
|
134
|
-
end
|
135
|
-
|
136
|
-
if @external_id.to_s.length < 1
|
137
|
-
invalid_properties.push('invalid value for "external_id", the character length must be great than or equal to 1.')
|
138
|
-
end
|
139
|
-
|
140
132
|
invalid_properties
|
141
133
|
end
|
142
134
|
|
@@ -146,8 +138,6 @@ module Wallee
|
|
146
138
|
return false if !@customer_email_address.nil? && @customer_email_address.to_s.length > 150
|
147
139
|
return false if !@token_reference.nil? && @token_reference.to_s.length > 100
|
148
140
|
return false if @external_id.nil?
|
149
|
-
return false if @external_id.to_s.length > 100
|
150
|
-
return false if @external_id.to_s.length < 1
|
151
141
|
true
|
152
142
|
end
|
153
143
|
|
@@ -171,24 +161,6 @@ module Wallee
|
|
171
161
|
@token_reference = token_reference
|
172
162
|
end
|
173
163
|
|
174
|
-
# Custom attribute writer method with validation
|
175
|
-
# @param [Object] external_id Value to be assigned
|
176
|
-
def external_id=(external_id)
|
177
|
-
if external_id.nil?
|
178
|
-
fail ArgumentError, 'external_id cannot be nil'
|
179
|
-
end
|
180
|
-
|
181
|
-
if external_id.to_s.length > 100
|
182
|
-
fail ArgumentError, 'invalid value for "external_id", the character length must be smaller than or equal to 100.'
|
183
|
-
end
|
184
|
-
|
185
|
-
if external_id.to_s.length < 1
|
186
|
-
fail ArgumentError, 'invalid value for "external_id", the character length must be great than or equal to 1.'
|
187
|
-
end
|
188
|
-
|
189
|
-
@external_id = external_id
|
190
|
-
end
|
191
|
-
|
192
164
|
# Checks equality by comparing each attribute.
|
193
165
|
# @param [Object] Object to be compared
|
194
166
|
def ==(o)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wallee-ruby-sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- wallee AG
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-05-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -411,6 +411,7 @@ files:
|
|
411
411
|
- lib/wallee-ruby-sdk/models/rest_currency.rb
|
412
412
|
- lib/wallee-ruby-sdk/models/rest_language.rb
|
413
413
|
- lib/wallee-ruby-sdk/models/role.rb
|
414
|
+
- lib/wallee-ruby-sdk/models/role_state.rb
|
414
415
|
- lib/wallee-ruby-sdk/models/sales_channel.rb
|
415
416
|
- lib/wallee-ruby-sdk/models/scope.rb
|
416
417
|
- lib/wallee-ruby-sdk/models/server_error.rb
|