moneykit 0.1.0.alpha.2 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/docs/Body.md +42 -0
- data/docs/LinkProductRefreshWebhook.md +38 -0
- data/docs/LinkProductState.md +15 -0
- data/docs/ResponseHandleLinkWebhookEventRequestBodyWebhookPost.md +42 -0
- data/docs/TransactionUpdatesAvailableWebhook.md +30 -0
- data/lib/moneykit/models/body.rb +104 -0
- data/lib/moneykit/models/link_product_refresh_webhook.rb +417 -0
- data/lib/moneykit/models/link_product_state.rb +40 -0
- data/lib/moneykit/models/link_session_customer_user.rb +3 -3
- data/lib/moneykit/models/response_handle_link_webhook_event_request_body_webhook_post.rb +104 -0
- data/lib/moneykit/models/transaction_updates_available_webhook.rb +358 -0
- data/lib/moneykit/version.rb +1 -1
- data/lib/moneykit.rb +5 -0
- data/spec/models/body_spec.rb +21 -0
- data/spec/models/link_product_refresh_webhook_spec.rb +108 -0
- data/spec/models/link_product_state_spec.rb +30 -0
- data/spec/models/response_handle_link_webhook_event_request_body_webhook_post_spec.rb +21 -0
- data/spec/models/transaction_updates_available_webhook_spec.rb +84 -0
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/byebug-11.1.3/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/jaro_winkler-1.5.6/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/psych-5.1.1.1/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/racc-1.7.3/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/stringio-3.1.0/gem_make.out +5 -5
- metadata +118 -98
@@ -0,0 +1,358 @@
|
|
1
|
+
=begin
|
2
|
+
#MoneyKit API
|
3
|
+
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 0.1.0
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 7.1.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module MoneyKit
|
17
|
+
class TransactionUpdatesAvailableWebhook
|
18
|
+
attr_accessor :webhook_event
|
19
|
+
|
20
|
+
attr_accessor :webhook_major_version
|
21
|
+
|
22
|
+
attr_accessor :webhook_minor_version
|
23
|
+
|
24
|
+
attr_accessor :webhook_idempotency_key
|
25
|
+
|
26
|
+
attr_accessor :webhook_timestamp
|
27
|
+
|
28
|
+
attr_accessor :link_id
|
29
|
+
|
30
|
+
attr_accessor :has_history
|
31
|
+
|
32
|
+
class EnumAttributeValidator
|
33
|
+
attr_reader :datatype
|
34
|
+
attr_reader :allowable_values
|
35
|
+
|
36
|
+
def initialize(datatype, allowable_values)
|
37
|
+
@allowable_values = allowable_values.map do |value|
|
38
|
+
case datatype.to_s
|
39
|
+
when /Integer/i
|
40
|
+
value.to_i
|
41
|
+
when /Float/i
|
42
|
+
value.to_f
|
43
|
+
else
|
44
|
+
value
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
def valid?(value)
|
50
|
+
!value || allowable_values.include?(value)
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
55
|
+
def self.attribute_map
|
56
|
+
{
|
57
|
+
:'webhook_event' => :'webhook_event',
|
58
|
+
:'webhook_major_version' => :'webhook_major_version',
|
59
|
+
:'webhook_minor_version' => :'webhook_minor_version',
|
60
|
+
:'webhook_idempotency_key' => :'webhook_idempotency_key',
|
61
|
+
:'webhook_timestamp' => :'webhook_timestamp',
|
62
|
+
:'link_id' => :'link_id',
|
63
|
+
:'has_history' => :'has_history'
|
64
|
+
}
|
65
|
+
end
|
66
|
+
|
67
|
+
# Returns all the JSON keys this model knows about
|
68
|
+
def self.acceptable_attributes
|
69
|
+
attribute_map.values
|
70
|
+
end
|
71
|
+
|
72
|
+
# Attribute type mapping.
|
73
|
+
def self.openapi_types
|
74
|
+
{
|
75
|
+
:'webhook_event' => :'String',
|
76
|
+
:'webhook_major_version' => :'Integer',
|
77
|
+
:'webhook_minor_version' => :'Integer',
|
78
|
+
:'webhook_idempotency_key' => :'String',
|
79
|
+
:'webhook_timestamp' => :'Time',
|
80
|
+
:'link_id' => :'String',
|
81
|
+
:'has_history' => :'Boolean'
|
82
|
+
}
|
83
|
+
end
|
84
|
+
|
85
|
+
# List of attributes with nullable: true
|
86
|
+
def self.openapi_nullable
|
87
|
+
Set.new([
|
88
|
+
])
|
89
|
+
end
|
90
|
+
|
91
|
+
# Initializes the object
|
92
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
93
|
+
def initialize(attributes = {})
|
94
|
+
if (!attributes.is_a?(Hash))
|
95
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `MoneyKit::TransactionUpdatesAvailableWebhook` initialize method"
|
96
|
+
end
|
97
|
+
|
98
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
99
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
100
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
101
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `MoneyKit::TransactionUpdatesAvailableWebhook`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
102
|
+
end
|
103
|
+
h[k.to_sym] = v
|
104
|
+
}
|
105
|
+
|
106
|
+
if attributes.key?(:'webhook_event')
|
107
|
+
self.webhook_event = attributes[:'webhook_event']
|
108
|
+
else
|
109
|
+
self.webhook_event = 'transactions.updates_available'
|
110
|
+
end
|
111
|
+
|
112
|
+
if attributes.key?(:'webhook_major_version')
|
113
|
+
self.webhook_major_version = attributes[:'webhook_major_version']
|
114
|
+
else
|
115
|
+
self.webhook_major_version = WEBHOOK_MAJOR_VERSION::N1
|
116
|
+
end
|
117
|
+
|
118
|
+
if attributes.key?(:'webhook_minor_version')
|
119
|
+
self.webhook_minor_version = attributes[:'webhook_minor_version']
|
120
|
+
else
|
121
|
+
self.webhook_minor_version = WEBHOOK_MINOR_VERSION::N0
|
122
|
+
end
|
123
|
+
|
124
|
+
if attributes.key?(:'webhook_idempotency_key')
|
125
|
+
self.webhook_idempotency_key = attributes[:'webhook_idempotency_key']
|
126
|
+
else
|
127
|
+
self.webhook_idempotency_key = nil
|
128
|
+
end
|
129
|
+
|
130
|
+
if attributes.key?(:'webhook_timestamp')
|
131
|
+
self.webhook_timestamp = attributes[:'webhook_timestamp']
|
132
|
+
else
|
133
|
+
self.webhook_timestamp = nil
|
134
|
+
end
|
135
|
+
|
136
|
+
if attributes.key?(:'link_id')
|
137
|
+
self.link_id = attributes[:'link_id']
|
138
|
+
else
|
139
|
+
self.link_id = nil
|
140
|
+
end
|
141
|
+
|
142
|
+
if attributes.key?(:'has_history')
|
143
|
+
self.has_history = attributes[:'has_history']
|
144
|
+
else
|
145
|
+
self.has_history = nil
|
146
|
+
end
|
147
|
+
end
|
148
|
+
|
149
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
150
|
+
# @return Array for valid properties with the reasons
|
151
|
+
def list_invalid_properties
|
152
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
153
|
+
invalid_properties = Array.new
|
154
|
+
if @webhook_idempotency_key.nil?
|
155
|
+
invalid_properties.push('invalid value for "webhook_idempotency_key", webhook_idempotency_key cannot be nil.')
|
156
|
+
end
|
157
|
+
|
158
|
+
if @webhook_timestamp.nil?
|
159
|
+
invalid_properties.push('invalid value for "webhook_timestamp", webhook_timestamp cannot be nil.')
|
160
|
+
end
|
161
|
+
|
162
|
+
if @link_id.nil?
|
163
|
+
invalid_properties.push('invalid value for "link_id", link_id cannot be nil.')
|
164
|
+
end
|
165
|
+
|
166
|
+
if @has_history.nil?
|
167
|
+
invalid_properties.push('invalid value for "has_history", has_history cannot be nil.')
|
168
|
+
end
|
169
|
+
|
170
|
+
invalid_properties
|
171
|
+
end
|
172
|
+
|
173
|
+
# Check to see if the all the properties in the model are valid
|
174
|
+
# @return true if the model is valid
|
175
|
+
def valid?
|
176
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
177
|
+
webhook_event_validator = EnumAttributeValidator.new('String', ["transactions.updates_available"])
|
178
|
+
return false unless webhook_event_validator.valid?(@webhook_event)
|
179
|
+
webhook_major_version_validator = EnumAttributeValidator.new('Integer', [1])
|
180
|
+
return false unless webhook_major_version_validator.valid?(@webhook_major_version)
|
181
|
+
webhook_minor_version_validator = EnumAttributeValidator.new('Integer', [0])
|
182
|
+
return false unless webhook_minor_version_validator.valid?(@webhook_minor_version)
|
183
|
+
return false if @webhook_idempotency_key.nil?
|
184
|
+
return false if @webhook_timestamp.nil?
|
185
|
+
return false if @link_id.nil?
|
186
|
+
return false if @has_history.nil?
|
187
|
+
true
|
188
|
+
end
|
189
|
+
|
190
|
+
# Custom attribute writer method checking allowed values (enum).
|
191
|
+
# @param [Object] webhook_event Object to be assigned
|
192
|
+
def webhook_event=(webhook_event)
|
193
|
+
validator = EnumAttributeValidator.new('String', ["transactions.updates_available"])
|
194
|
+
unless validator.valid?(webhook_event)
|
195
|
+
fail ArgumentError, "invalid value for \"webhook_event\", must be one of #{validator.allowable_values}."
|
196
|
+
end
|
197
|
+
@webhook_event = webhook_event
|
198
|
+
end
|
199
|
+
|
200
|
+
# Custom attribute writer method checking allowed values (enum).
|
201
|
+
# @param [Object] webhook_major_version Object to be assigned
|
202
|
+
def webhook_major_version=(webhook_major_version)
|
203
|
+
validator = EnumAttributeValidator.new('Integer', [1])
|
204
|
+
unless validator.valid?(webhook_major_version)
|
205
|
+
fail ArgumentError, "invalid value for \"webhook_major_version\", must be one of #{validator.allowable_values}."
|
206
|
+
end
|
207
|
+
@webhook_major_version = webhook_major_version
|
208
|
+
end
|
209
|
+
|
210
|
+
# Custom attribute writer method checking allowed values (enum).
|
211
|
+
# @param [Object] webhook_minor_version Object to be assigned
|
212
|
+
def webhook_minor_version=(webhook_minor_version)
|
213
|
+
validator = EnumAttributeValidator.new('Integer', [0])
|
214
|
+
unless validator.valid?(webhook_minor_version)
|
215
|
+
fail ArgumentError, "invalid value for \"webhook_minor_version\", must be one of #{validator.allowable_values}."
|
216
|
+
end
|
217
|
+
@webhook_minor_version = webhook_minor_version
|
218
|
+
end
|
219
|
+
|
220
|
+
# Checks equality by comparing each attribute.
|
221
|
+
# @param [Object] Object to be compared
|
222
|
+
def ==(o)
|
223
|
+
return true if self.equal?(o)
|
224
|
+
self.class == o.class &&
|
225
|
+
webhook_event == o.webhook_event &&
|
226
|
+
webhook_major_version == o.webhook_major_version &&
|
227
|
+
webhook_minor_version == o.webhook_minor_version &&
|
228
|
+
webhook_idempotency_key == o.webhook_idempotency_key &&
|
229
|
+
webhook_timestamp == o.webhook_timestamp &&
|
230
|
+
link_id == o.link_id &&
|
231
|
+
has_history == o.has_history
|
232
|
+
end
|
233
|
+
|
234
|
+
# @see the `==` method
|
235
|
+
# @param [Object] Object to be compared
|
236
|
+
def eql?(o)
|
237
|
+
self == o
|
238
|
+
end
|
239
|
+
|
240
|
+
# Calculates hash code according to all attributes.
|
241
|
+
# @return [Integer] Hash code
|
242
|
+
def hash
|
243
|
+
[webhook_event, webhook_major_version, webhook_minor_version, webhook_idempotency_key, webhook_timestamp, link_id, has_history].hash
|
244
|
+
end
|
245
|
+
|
246
|
+
# Builds the object from hash
|
247
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
248
|
+
# @return [Object] Returns the model itself
|
249
|
+
def self.build_from_hash(attributes)
|
250
|
+
return nil unless attributes.is_a?(Hash)
|
251
|
+
attributes = attributes.transform_keys(&:to_sym)
|
252
|
+
transformed_hash = {}
|
253
|
+
openapi_types.each_pair do |key, type|
|
254
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
255
|
+
transformed_hash["#{key}"] = nil
|
256
|
+
elsif type =~ /\AArray<(.*)>/i
|
257
|
+
# check to ensure the input is an array given that the attribute
|
258
|
+
# is documented as an array but the input is not
|
259
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
260
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
261
|
+
end
|
262
|
+
elsif !attributes[attribute_map[key]].nil?
|
263
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
264
|
+
end
|
265
|
+
end
|
266
|
+
new(transformed_hash)
|
267
|
+
end
|
268
|
+
|
269
|
+
# Deserializes the data based on type
|
270
|
+
# @param string type Data type
|
271
|
+
# @param string value Value to be deserialized
|
272
|
+
# @return [Object] Deserialized data
|
273
|
+
def self._deserialize(type, value)
|
274
|
+
case type.to_sym
|
275
|
+
when :Time
|
276
|
+
Time.parse(value)
|
277
|
+
when :Date
|
278
|
+
Date.parse(value)
|
279
|
+
when :String
|
280
|
+
value.to_s
|
281
|
+
when :Integer
|
282
|
+
value.to_i
|
283
|
+
when :Float
|
284
|
+
value.to_f
|
285
|
+
when :Boolean
|
286
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
287
|
+
true
|
288
|
+
else
|
289
|
+
false
|
290
|
+
end
|
291
|
+
when :Object
|
292
|
+
# generic object (usually a Hash), return directly
|
293
|
+
value
|
294
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
295
|
+
inner_type = Regexp.last_match[:inner_type]
|
296
|
+
value.map { |v| _deserialize(inner_type, v) }
|
297
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
298
|
+
k_type = Regexp.last_match[:k_type]
|
299
|
+
v_type = Regexp.last_match[:v_type]
|
300
|
+
{}.tap do |hash|
|
301
|
+
value.each do |k, v|
|
302
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
303
|
+
end
|
304
|
+
end
|
305
|
+
else # model
|
306
|
+
# models (e.g. Pet) or oneOf
|
307
|
+
klass = MoneyKit.const_get(type)
|
308
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
309
|
+
end
|
310
|
+
end
|
311
|
+
|
312
|
+
# Returns the string representation of the object
|
313
|
+
# @return [String] String presentation of the object
|
314
|
+
def to_s
|
315
|
+
to_hash.to_s
|
316
|
+
end
|
317
|
+
|
318
|
+
# to_body is an alias to to_hash (backward compatibility)
|
319
|
+
# @return [Hash] Returns the object in the form of hash
|
320
|
+
def to_body
|
321
|
+
to_hash
|
322
|
+
end
|
323
|
+
|
324
|
+
# Returns the object in the form of hash
|
325
|
+
# @return [Hash] Returns the object in the form of hash
|
326
|
+
def to_hash
|
327
|
+
hash = {}
|
328
|
+
self.class.attribute_map.each_pair do |attr, param|
|
329
|
+
value = self.send(attr)
|
330
|
+
if value.nil?
|
331
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
332
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
333
|
+
end
|
334
|
+
|
335
|
+
hash[param] = _to_hash(value)
|
336
|
+
end
|
337
|
+
hash
|
338
|
+
end
|
339
|
+
|
340
|
+
# Outputs non-array value in the form of hash
|
341
|
+
# For object, use to_hash. Otherwise, just return the value
|
342
|
+
# @param [Object] value Any valid value
|
343
|
+
# @return [Hash] Returns the value in the form of hash
|
344
|
+
def _to_hash(value)
|
345
|
+
if value.is_a?(Array)
|
346
|
+
value.compact.map { |v| _to_hash(v) }
|
347
|
+
elsif value.is_a?(Hash)
|
348
|
+
{}.tap do |hash|
|
349
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
350
|
+
end
|
351
|
+
elsif value.respond_to? :to_hash
|
352
|
+
value.to_hash
|
353
|
+
else
|
354
|
+
value
|
355
|
+
end
|
356
|
+
end
|
357
|
+
end
|
358
|
+
end
|
data/lib/moneykit/version.rb
CHANGED
data/lib/moneykit.rb
CHANGED
@@ -33,6 +33,7 @@ require 'moneykit/models/ach_number'
|
|
33
33
|
require 'moneykit/models/address'
|
34
34
|
require 'moneykit/models/bacs_number'
|
35
35
|
require 'moneykit/models/basic_account_details'
|
36
|
+
require 'moneykit/models/body'
|
36
37
|
require 'moneykit/models/country'
|
37
38
|
require 'moneykit/models/create_link_session_request'
|
38
39
|
require 'moneykit/models/create_link_session_response'
|
@@ -71,6 +72,8 @@ require 'moneykit/models/link_error_not_found_response'
|
|
71
72
|
require 'moneykit/models/link_error_unauthorized_access_response'
|
72
73
|
require 'moneykit/models/link_permission_scope'
|
73
74
|
require 'moneykit/models/link_permissions'
|
75
|
+
require 'moneykit/models/link_product_refresh_webhook'
|
76
|
+
require 'moneykit/models/link_product_state'
|
74
77
|
require 'moneykit/models/link_products'
|
75
78
|
require 'moneykit/models/link_response'
|
76
79
|
require 'moneykit/models/link_session_customer_user'
|
@@ -111,11 +114,13 @@ require 'moneykit/models/response401_refresh_products_links_id_products_post'
|
|
111
114
|
require 'moneykit/models/response401_reset_login_links_id_reset_post'
|
112
115
|
require 'moneykit/models/response401_trigger_test_link_webhook_event_webhooks_test_link_id_post'
|
113
116
|
require 'moneykit/models/response401_update_link_links_id_patch'
|
117
|
+
require 'moneykit/models/response_handle_link_webhook_event_request_body_webhook_post'
|
114
118
|
require 'moneykit/models/transaction'
|
115
119
|
require 'moneykit/models/transaction_diff'
|
116
120
|
require 'moneykit/models/transaction_sync_response'
|
117
121
|
require 'moneykit/models/transaction_type'
|
118
122
|
require 'moneykit/models/transaction_type_filter'
|
123
|
+
require 'moneykit/models/transaction_updates_available_webhook'
|
119
124
|
require 'moneykit/models/transactions_link_product'
|
120
125
|
require 'moneykit/models/transactions_product_settings'
|
121
126
|
require 'moneykit/models/update_link_request'
|
@@ -0,0 +1,21 @@
|
|
1
|
+
=begin
|
2
|
+
#MoneyKit API
|
3
|
+
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 0.1.0
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 7.1.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for MoneyKit::Body
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe MoneyKit::Body do
|
21
|
+
end
|
@@ -0,0 +1,108 @@
|
|
1
|
+
=begin
|
2
|
+
#MoneyKit API
|
3
|
+
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 0.1.0
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 7.1.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for MoneyKit::LinkProductRefreshWebhook
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe MoneyKit::LinkProductRefreshWebhook do
|
21
|
+
let(:instance) { MoneyKit::LinkProductRefreshWebhook.new }
|
22
|
+
|
23
|
+
describe 'test an instance of LinkProductRefreshWebhook' do
|
24
|
+
it 'should create an instance of LinkProductRefreshWebhook' do
|
25
|
+
# uncomment below to test the instance creation
|
26
|
+
# expect(instance).to be_instance_of(MoneyKit::LinkProductRefreshWebhook)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test attribute "webhook_event"' do
|
31
|
+
it 'should work' do
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
33
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["link.product_refresh"])
|
34
|
+
# validator.allowable_values.each do |value|
|
35
|
+
# expect { instance.webhook_event = value }.not_to raise_error
|
36
|
+
# end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
describe 'test attribute "webhook_major_version"' do
|
41
|
+
it 'should work' do
|
42
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
43
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('Integer', [1])
|
44
|
+
# validator.allowable_values.each do |value|
|
45
|
+
# expect { instance.webhook_major_version = value }.not_to raise_error
|
46
|
+
# end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
describe 'test attribute "webhook_minor_version"' do
|
51
|
+
it 'should work' do
|
52
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
53
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('Integer', [0])
|
54
|
+
# validator.allowable_values.each do |value|
|
55
|
+
# expect { instance.webhook_minor_version = value }.not_to raise_error
|
56
|
+
# end
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
describe 'test attribute "webhook_idempotency_key"' do
|
61
|
+
it 'should work' do
|
62
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
describe 'test attribute "webhook_timestamp"' do
|
67
|
+
it 'should work' do
|
68
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
72
|
+
describe 'test attribute "link_id"' do
|
73
|
+
it 'should work' do
|
74
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
78
|
+
describe 'test attribute "link_tags"' do
|
79
|
+
it 'should work' do
|
80
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
84
|
+
describe 'test attribute "product"' do
|
85
|
+
it 'should work' do
|
86
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
87
|
+
end
|
88
|
+
end
|
89
|
+
|
90
|
+
describe 'test attribute "state"' do
|
91
|
+
it 'should work' do
|
92
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
93
|
+
end
|
94
|
+
end
|
95
|
+
|
96
|
+
describe 'test attribute "state_changed_at"' do
|
97
|
+
it 'should work' do
|
98
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
99
|
+
end
|
100
|
+
end
|
101
|
+
|
102
|
+
describe 'test attribute "error_message"' do
|
103
|
+
it 'should work' do
|
104
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
105
|
+
end
|
106
|
+
end
|
107
|
+
|
108
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
=begin
|
2
|
+
#MoneyKit API
|
3
|
+
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 0.1.0
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 7.1.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for MoneyKit::LinkProductState
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe MoneyKit::LinkProductState do
|
21
|
+
let(:instance) { MoneyKit::LinkProductState.new }
|
22
|
+
|
23
|
+
describe 'test an instance of LinkProductState' do
|
24
|
+
it 'should create an instance of LinkProductState' do
|
25
|
+
# uncomment below to test the instance creation
|
26
|
+
# expect(instance).to be_instance_of(MoneyKit::LinkProductState)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
=begin
|
2
|
+
#MoneyKit API
|
3
|
+
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 0.1.0
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 7.1.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for MoneyKit::ResponseHandleLinkWebhookEventRequestBodyWebhookPost
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe MoneyKit::ResponseHandleLinkWebhookEventRequestBodyWebhookPost do
|
21
|
+
end
|
@@ -0,0 +1,84 @@
|
|
1
|
+
=begin
|
2
|
+
#MoneyKit API
|
3
|
+
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 0.1.0
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 7.1.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for MoneyKit::TransactionUpdatesAvailableWebhook
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe MoneyKit::TransactionUpdatesAvailableWebhook do
|
21
|
+
let(:instance) { MoneyKit::TransactionUpdatesAvailableWebhook.new }
|
22
|
+
|
23
|
+
describe 'test an instance of TransactionUpdatesAvailableWebhook' do
|
24
|
+
it 'should create an instance of TransactionUpdatesAvailableWebhook' do
|
25
|
+
# uncomment below to test the instance creation
|
26
|
+
# expect(instance).to be_instance_of(MoneyKit::TransactionUpdatesAvailableWebhook)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test attribute "webhook_event"' do
|
31
|
+
it 'should work' do
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
33
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["transactions.updates_available"])
|
34
|
+
# validator.allowable_values.each do |value|
|
35
|
+
# expect { instance.webhook_event = value }.not_to raise_error
|
36
|
+
# end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
describe 'test attribute "webhook_major_version"' do
|
41
|
+
it 'should work' do
|
42
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
43
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('Integer', [1])
|
44
|
+
# validator.allowable_values.each do |value|
|
45
|
+
# expect { instance.webhook_major_version = value }.not_to raise_error
|
46
|
+
# end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
describe 'test attribute "webhook_minor_version"' do
|
51
|
+
it 'should work' do
|
52
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
53
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('Integer', [0])
|
54
|
+
# validator.allowable_values.each do |value|
|
55
|
+
# expect { instance.webhook_minor_version = value }.not_to raise_error
|
56
|
+
# end
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
describe 'test attribute "webhook_idempotency_key"' do
|
61
|
+
it 'should work' do
|
62
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
describe 'test attribute "webhook_timestamp"' do
|
67
|
+
it 'should work' do
|
68
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
72
|
+
describe 'test attribute "link_id"' do
|
73
|
+
it 'should work' do
|
74
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
78
|
+
describe 'test attribute "has_history"' do
|
79
|
+
it 'should work' do
|
80
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
84
|
+
end
|
@@ -3,10 +3,10 @@ current directory: /home/runner/work/moneykit-ruby/moneykit-ruby/vendor/bundle/r
|
|
3
3
|
creating Makefile
|
4
4
|
|
5
5
|
current directory: /home/runner/work/moneykit-ruby/moneykit-ruby/vendor/bundle/ruby/3.2.0/gems/byebug-11.1.3/ext/byebug
|
6
|
-
make DESTDIR\= sitearchdir\=./.gem.
|
6
|
+
make DESTDIR\= sitearchdir\=./.gem.20231207-1850-vf7dp sitelibdir\=./.gem.20231207-1850-vf7dp clean
|
7
7
|
|
8
8
|
current directory: /home/runner/work/moneykit-ruby/moneykit-ruby/vendor/bundle/ruby/3.2.0/gems/byebug-11.1.3/ext/byebug
|
9
|
-
make DESTDIR\= sitearchdir\=./.gem.
|
9
|
+
make DESTDIR\= sitearchdir\=./.gem.20231207-1850-vf7dp sitelibdir\=./.gem.20231207-1850-vf7dp
|
10
10
|
compiling breakpoint.c
|
11
11
|
compiling byebug.c
|
12
12
|
byebug.c: In function ‘check_started’:
|
@@ -35,8 +35,8 @@ compiling threads.c
|
|
35
35
|
linking shared-object byebug/byebug.so
|
36
36
|
|
37
37
|
current directory: /home/runner/work/moneykit-ruby/moneykit-ruby/vendor/bundle/ruby/3.2.0/gems/byebug-11.1.3/ext/byebug
|
38
|
-
make DESTDIR\= sitearchdir\=./.gem.
|
39
|
-
/usr/bin/install -c -m 0755 byebug.so ./.gem.
|
38
|
+
make DESTDIR\= sitearchdir\=./.gem.20231207-1850-vf7dp sitelibdir\=./.gem.20231207-1850-vf7dp install
|
39
|
+
/usr/bin/install -c -m 0755 byebug.so ./.gem.20231207-1850-vf7dp/byebug
|
40
40
|
|
41
41
|
current directory: /home/runner/work/moneykit-ruby/moneykit-ruby/vendor/bundle/ruby/3.2.0/gems/byebug-11.1.3/ext/byebug
|
42
|
-
make DESTDIR\= sitearchdir\=./.gem.
|
42
|
+
make DESTDIR\= sitearchdir\=./.gem.20231207-1850-vf7dp sitelibdir\=./.gem.20231207-1850-vf7dp clean
|