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
@@ -112,6 +112,14 @@ module Wallee
|
|
112
112
|
invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 50.')
|
113
113
|
end
|
114
114
|
|
115
|
+
if !@url.nil? && @url.to_s.length > 500
|
116
|
+
invalid_properties.push('invalid value for "url", the character length must be smaller than or equal to 500.')
|
117
|
+
end
|
118
|
+
|
119
|
+
if !@url.nil? && @url.to_s.length < 9
|
120
|
+
invalid_properties.push('invalid value for "url", the character length must be great than or equal to 9.')
|
121
|
+
end
|
122
|
+
|
115
123
|
invalid_properties
|
116
124
|
end
|
117
125
|
|
@@ -119,6 +127,8 @@ module Wallee
|
|
119
127
|
# @return true if the model is valid
|
120
128
|
def valid?
|
121
129
|
return false if !@name.nil? && @name.to_s.length > 50
|
130
|
+
return false if !@url.nil? && @url.to_s.length > 500
|
131
|
+
return false if !@url.nil? && @url.to_s.length < 9
|
122
132
|
true
|
123
133
|
end
|
124
134
|
|
@@ -132,6 +142,20 @@ module Wallee
|
|
132
142
|
@name = name
|
133
143
|
end
|
134
144
|
|
145
|
+
# Custom attribute writer method with validation
|
146
|
+
# @param [Object] url Value to be assigned
|
147
|
+
def url=(url)
|
148
|
+
if !url.nil? && url.to_s.length > 500
|
149
|
+
fail ArgumentError, 'invalid value for "url", the character length must be smaller than or equal to 500.'
|
150
|
+
end
|
151
|
+
|
152
|
+
if !url.nil? && url.to_s.length < 9
|
153
|
+
fail ArgumentError, 'invalid value for "url", the character length must be great than or equal to 9.'
|
154
|
+
end
|
155
|
+
|
156
|
+
@url = url
|
157
|
+
end
|
158
|
+
|
135
159
|
# Checks equality by comparing each attribute.
|
136
160
|
# @param [Object] Object to be compared
|
137
161
|
def ==(o)
|
@@ -76,6 +76,14 @@ module Wallee
|
|
76
76
|
invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 50.')
|
77
77
|
end
|
78
78
|
|
79
|
+
if !@url.nil? && @url.to_s.length > 500
|
80
|
+
invalid_properties.push('invalid value for "url", the character length must be smaller than or equal to 500.')
|
81
|
+
end
|
82
|
+
|
83
|
+
if !@url.nil? && @url.to_s.length < 9
|
84
|
+
invalid_properties.push('invalid value for "url", the character length must be great than or equal to 9.')
|
85
|
+
end
|
86
|
+
|
79
87
|
invalid_properties
|
80
88
|
end
|
81
89
|
|
@@ -83,6 +91,8 @@ module Wallee
|
|
83
91
|
# @return true if the model is valid
|
84
92
|
def valid?
|
85
93
|
return false if !@name.nil? && @name.to_s.length > 50
|
94
|
+
return false if !@url.nil? && @url.to_s.length > 500
|
95
|
+
return false if !@url.nil? && @url.to_s.length < 9
|
86
96
|
true
|
87
97
|
end
|
88
98
|
|
@@ -96,6 +106,20 @@ module Wallee
|
|
96
106
|
@name = name
|
97
107
|
end
|
98
108
|
|
109
|
+
# Custom attribute writer method with validation
|
110
|
+
# @param [Object] url Value to be assigned
|
111
|
+
def url=(url)
|
112
|
+
if !url.nil? && url.to_s.length > 500
|
113
|
+
fail ArgumentError, 'invalid value for "url", the character length must be smaller than or equal to 500.'
|
114
|
+
end
|
115
|
+
|
116
|
+
if !url.nil? && url.to_s.length < 9
|
117
|
+
fail ArgumentError, 'invalid value for "url", the character length must be great than or equal to 9.'
|
118
|
+
end
|
119
|
+
|
120
|
+
@url = url
|
121
|
+
end
|
122
|
+
|
99
123
|
# Checks equality by comparing each attribute.
|
100
124
|
# @param [Object] Object to be compared
|
101
125
|
def ==(o)
|
@@ -94,6 +94,14 @@ module Wallee
|
|
94
94
|
invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 50.')
|
95
95
|
end
|
96
96
|
|
97
|
+
if !@url.nil? && @url.to_s.length > 500
|
98
|
+
invalid_properties.push('invalid value for "url", the character length must be smaller than or equal to 500.')
|
99
|
+
end
|
100
|
+
|
101
|
+
if !@url.nil? && @url.to_s.length < 9
|
102
|
+
invalid_properties.push('invalid value for "url", the character length must be great than or equal to 9.')
|
103
|
+
end
|
104
|
+
|
97
105
|
if @id.nil?
|
98
106
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
99
107
|
end
|
@@ -109,6 +117,8 @@ module Wallee
|
|
109
117
|
# @return true if the model is valid
|
110
118
|
def valid?
|
111
119
|
return false if !@name.nil? && @name.to_s.length > 50
|
120
|
+
return false if !@url.nil? && @url.to_s.length > 500
|
121
|
+
return false if !@url.nil? && @url.to_s.length < 9
|
112
122
|
return false if @id.nil?
|
113
123
|
return false if @version.nil?
|
114
124
|
true
|
@@ -124,6 +134,20 @@ module Wallee
|
|
124
134
|
@name = name
|
125
135
|
end
|
126
136
|
|
137
|
+
# Custom attribute writer method with validation
|
138
|
+
# @param [Object] url Value to be assigned
|
139
|
+
def url=(url)
|
140
|
+
if !url.nil? && url.to_s.length > 500
|
141
|
+
fail ArgumentError, 'invalid value for "url", the character length must be smaller than or equal to 500.'
|
142
|
+
end
|
143
|
+
|
144
|
+
if !url.nil? && url.to_s.length < 9
|
145
|
+
fail ArgumentError, 'invalid value for "url", the character length must be great than or equal to 9.'
|
146
|
+
end
|
147
|
+
|
148
|
+
@url = url
|
149
|
+
end
|
150
|
+
|
127
151
|
# Checks equality by comparing each attribute.
|
128
152
|
# @param [Object] Object to be compared
|
129
153
|
def ==(o)
|
data/wallee-ruby-sdk.gemspec
CHANGED
@@ -24,8 +24,8 @@ Gem::Specification.new do |s|
|
|
24
24
|
s.name = "wallee-ruby-sdk"
|
25
25
|
s.version = Wallee::VERSION
|
26
26
|
s.platform = Gem::Platform::RUBY
|
27
|
-
s.authors = ["
|
28
|
-
s.email = ["info@
|
27
|
+
s.authors = ["wallee AG"]
|
28
|
+
s.email = ["info@wallee.com"]
|
29
29
|
s.homepage = "https://app-wallee.com/"
|
30
30
|
s.summary = "A ruby wrapper around the wallee API."
|
31
31
|
s.description = "The wallee SDK allows an easy interaction with the wallee web service."
|
@@ -34,6 +34,7 @@ Gem::Specification.new do |s|
|
|
34
34
|
|
35
35
|
s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
|
36
36
|
s.add_runtime_dependency 'json', '~> 2.3', '>= 2.3.0'
|
37
|
+
s.add_runtime_dependency 'addressable', '~> 2.3', '>= 2.3.0'
|
37
38
|
|
38
39
|
|
39
40
|
s.files = `find *`.split("\n").uniq.sort.select{|f| !f.empty? }
|
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: 2.2.
|
4
|
+
version: 2.2.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: 2020-
|
11
|
+
date: 2020-11-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -34,25 +34,45 @@ dependencies:
|
|
34
34
|
name: json
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
|
-
- - "~>"
|
38
|
-
- !ruby/object:Gem::Version
|
39
|
-
version: '2.3'
|
40
37
|
- - ">="
|
41
38
|
- !ruby/object:Gem::Version
|
42
39
|
version: 2.3.0
|
40
|
+
- - "~>"
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: '2.3'
|
43
43
|
type: :runtime
|
44
44
|
prerelease: false
|
45
45
|
version_requirements: !ruby/object:Gem::Requirement
|
46
46
|
requirements:
|
47
|
+
- - ">="
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: 2.3.0
|
47
50
|
- - "~>"
|
48
51
|
- !ruby/object:Gem::Version
|
49
52
|
version: '2.3'
|
53
|
+
- !ruby/object:Gem::Dependency
|
54
|
+
name: addressable
|
55
|
+
requirement: !ruby/object:Gem::Requirement
|
56
|
+
requirements:
|
50
57
|
- - ">="
|
51
58
|
- !ruby/object:Gem::Version
|
52
59
|
version: 2.3.0
|
60
|
+
- - "~>"
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '2.3'
|
63
|
+
type: :runtime
|
64
|
+
prerelease: false
|
65
|
+
version_requirements: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - ">="
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: 2.3.0
|
70
|
+
- - "~>"
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
version: '2.3'
|
53
73
|
description: The wallee SDK allows an easy interaction with the wallee web service.
|
54
74
|
email:
|
55
|
-
- info@
|
75
|
+
- info@wallee.com
|
56
76
|
executables: []
|
57
77
|
extensions: []
|
58
78
|
extra_rdoc_files: []
|
@@ -103,6 +123,7 @@ files:
|
|
103
123
|
- lib/wallee-ruby-sdk/api/payment_processor_configuration_service_api.rb
|
104
124
|
- lib/wallee-ruby-sdk/api/payment_processor_service_api.rb
|
105
125
|
- lib/wallee-ruby-sdk/api/payment_terminal_service_api.rb
|
126
|
+
- lib/wallee-ruby-sdk/api/payment_terminal_till_service_api.rb
|
106
127
|
- lib/wallee-ruby-sdk/api/permission_service_api.rb
|
107
128
|
- lib/wallee-ruby-sdk/api/refund_comment_service_api.rb
|
108
129
|
- lib/wallee-ruby-sdk/api/refund_service_api.rb
|
@@ -112,6 +133,7 @@ files:
|
|
112
133
|
- lib/wallee-ruby-sdk/api/shopify_subscription_service_api.rb
|
113
134
|
- lib/wallee-ruby-sdk/api/shopify_subscription_suspension_service_api.rb
|
114
135
|
- lib/wallee-ruby-sdk/api/shopify_subscription_version_service_api.rb
|
136
|
+
- lib/wallee-ruby-sdk/api/shopify_transaction_service_api.rb
|
115
137
|
- lib/wallee-ruby-sdk/api/space_service_api.rb
|
116
138
|
- lib/wallee-ruby-sdk/api/static_value_service_api.rb
|
117
139
|
- lib/wallee-ruby-sdk/api/subscriber_service_api.rb
|
@@ -163,7 +185,7 @@ files:
|
|
163
185
|
- lib/wallee-ruby-sdk/models/abstract_human_user_update.rb
|
164
186
|
- lib/wallee-ruby-sdk/models/abstract_payment_link_update.rb
|
165
187
|
- lib/wallee-ruby-sdk/models/abstract_refund_comment_active.rb
|
166
|
-
- lib/wallee-ruby-sdk/models/
|
188
|
+
- lib/wallee-ruby-sdk/models/abstract_shopify_subscription_product_update.rb
|
167
189
|
- lib/wallee-ruby-sdk/models/abstract_space_update.rb
|
168
190
|
- lib/wallee-ruby-sdk/models/abstract_subscriber_update.rb
|
169
191
|
- lib/wallee-ruby-sdk/models/abstract_subscription_affiliate_update.rb
|
@@ -355,29 +377,36 @@ files:
|
|
355
377
|
- lib/wallee-ruby-sdk/models/sales_channel.rb
|
356
378
|
- lib/wallee-ruby-sdk/models/scope.rb
|
357
379
|
- lib/wallee-ruby-sdk/models/server_error.rb
|
380
|
+
- lib/wallee-ruby-sdk/models/shopify_additional_line_item_data.rb
|
358
381
|
- lib/wallee-ruby-sdk/models/shopify_integration.rb
|
359
|
-
- lib/wallee-ruby-sdk/models/
|
382
|
+
- lib/wallee-ruby-sdk/models/shopify_integration_payment_app_version.rb
|
383
|
+
- lib/wallee-ruby-sdk/models/shopify_integration_subscription_app_version.rb
|
360
384
|
- lib/wallee-ruby-sdk/models/shopify_recurring_order.rb
|
361
385
|
- lib/wallee-ruby-sdk/models/shopify_recurring_order_state.rb
|
362
386
|
- lib/wallee-ruby-sdk/models/shopify_recurring_order_update_request.rb
|
363
387
|
- lib/wallee-ruby-sdk/models/shopify_subscriber.rb
|
388
|
+
- lib/wallee-ruby-sdk/models/shopify_subscriber_creation.rb
|
364
389
|
- lib/wallee-ruby-sdk/models/shopify_subscriber_state.rb
|
365
390
|
- lib/wallee-ruby-sdk/models/shopify_subscription.rb
|
366
391
|
- lib/wallee-ruby-sdk/models/shopify_subscription_address.rb
|
392
|
+
- lib/wallee-ruby-sdk/models/shopify_subscription_address_create.rb
|
367
393
|
- lib/wallee-ruby-sdk/models/shopify_subscription_billing_interval_unit.rb
|
368
|
-
- lib/wallee-ruby-sdk/models/
|
369
|
-
- lib/wallee-ruby-sdk/models/
|
394
|
+
- lib/wallee-ruby-sdk/models/shopify_subscription_creation_request.rb
|
395
|
+
- lib/wallee-ruby-sdk/models/shopify_subscription_model_billing_configuration.rb
|
396
|
+
- lib/wallee-ruby-sdk/models/shopify_subscription_model_item.rb
|
397
|
+
- lib/wallee-ruby-sdk/models/shopify_subscription_model_tax_line.rb
|
370
398
|
- lib/wallee-ruby-sdk/models/shopify_subscription_product.rb
|
371
|
-
- lib/wallee-ruby-sdk/models/shopify_subscription_product_active.rb
|
372
399
|
- lib/wallee-ruby-sdk/models/shopify_subscription_product_create.rb
|
373
400
|
- lib/wallee-ruby-sdk/models/shopify_subscription_product_pricing_option.rb
|
374
401
|
- lib/wallee-ruby-sdk/models/shopify_subscription_product_state.rb
|
402
|
+
- lib/wallee-ruby-sdk/models/shopify_subscription_product_update.rb
|
375
403
|
- lib/wallee-ruby-sdk/models/shopify_subscription_state.rb
|
376
404
|
- lib/wallee-ruby-sdk/models/shopify_subscription_suspension.rb
|
377
405
|
- lib/wallee-ruby-sdk/models/shopify_subscription_suspension_create.rb
|
378
406
|
- lib/wallee-ruby-sdk/models/shopify_subscription_suspension_initiator.rb
|
379
407
|
- lib/wallee-ruby-sdk/models/shopify_subscription_suspension_state.rb
|
380
408
|
- lib/wallee-ruby-sdk/models/shopify_subscription_suspension_type.rb
|
409
|
+
- lib/wallee-ruby-sdk/models/shopify_subscription_update_addresses_request.rb
|
381
410
|
- lib/wallee-ruby-sdk/models/shopify_subscription_update_request.rb
|
382
411
|
- lib/wallee-ruby-sdk/models/shopify_subscription_version.rb
|
383
412
|
- lib/wallee-ruby-sdk/models/shopify_subscription_version_item.rb
|
@@ -454,9 +483,11 @@ files:
|
|
454
483
|
- lib/wallee-ruby-sdk/models/subscription_suspension_running.rb
|
455
484
|
- lib/wallee-ruby-sdk/models/subscription_suspension_state.rb
|
456
485
|
- lib/wallee-ruby-sdk/models/subscription_update.rb
|
486
|
+
- lib/wallee-ruby-sdk/models/subscription_update_request.rb
|
457
487
|
- lib/wallee-ruby-sdk/models/subscription_version.rb
|
458
488
|
- lib/wallee-ruby-sdk/models/subscription_version_state.rb
|
459
489
|
- lib/wallee-ruby-sdk/models/tax.rb
|
490
|
+
- lib/wallee-ruby-sdk/models/tax_calculation.rb
|
460
491
|
- lib/wallee-ruby-sdk/models/tax_class.rb
|
461
492
|
- lib/wallee-ruby-sdk/models/tax_create.rb
|
462
493
|
- lib/wallee-ruby-sdk/models/tenant_database.rb
|
@@ -473,6 +504,7 @@ files:
|
|
473
504
|
- lib/wallee-ruby-sdk/models/transaction_comment_active.rb
|
474
505
|
- lib/wallee-ruby-sdk/models/transaction_comment_create.rb
|
475
506
|
- lib/wallee-ruby-sdk/models/transaction_completion.rb
|
507
|
+
- lib/wallee-ruby-sdk/models/transaction_completion_behavior.rb
|
476
508
|
- lib/wallee-ruby-sdk/models/transaction_completion_mode.rb
|
477
509
|
- lib/wallee-ruby-sdk/models/transaction_completion_request.rb
|
478
510
|
- lib/wallee-ruby-sdk/models/transaction_completion_state.rb
|
@@ -532,8 +564,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
532
564
|
- !ruby/object:Gem::Version
|
533
565
|
version: '0'
|
534
566
|
requirements: []
|
535
|
-
|
536
|
-
rubygems_version: 2.7.7
|
567
|
+
rubygems_version: 3.0.8
|
537
568
|
signing_key:
|
538
569
|
specification_version: 4
|
539
570
|
summary: A ruby wrapper around the wallee API.
|