wesley-key-sdk 4.0.0 → 4.2.0

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.
Files changed (96) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +47 -34
  3. data/bin/console +4 -4
  4. data/lib/{webhooks_and_callbacks_api → swagger_petstore_open_api30}/api_helper.rb +2 -2
  5. data/lib/{webhooks_and_callbacks_api → swagger_petstore_open_api30}/apis/base_api.rb +3 -3
  6. data/lib/swagger_petstore_open_api30/apis/pet_api.rb +287 -0
  7. data/lib/swagger_petstore_open_api30/apis/store_api.rb +131 -0
  8. data/lib/swagger_petstore_open_api30/apis/user_api.rb +233 -0
  9. data/lib/{webhooks_and_callbacks_api → swagger_petstore_open_api30}/client.rb +34 -15
  10. data/lib/{webhooks_and_callbacks_api → swagger_petstore_open_api30}/configuration.rb +30 -20
  11. data/lib/{webhooks_and_callbacks_api → swagger_petstore_open_api30}/exceptions/api_exception.rb +2 -2
  12. data/lib/swagger_petstore_open_api30/exceptions/oauth_provider_exception.rb +64 -0
  13. data/lib/{webhooks_and_callbacks_api → swagger_petstore_open_api30}/http/api_response.rb +2 -2
  14. data/lib/{webhooks_and_callbacks_api → swagger_petstore_open_api30}/http/auth/api_key.rb +15 -15
  15. data/lib/swagger_petstore_open_api30/http/auth/petstore_auth.rb +112 -0
  16. data/lib/{webhooks_and_callbacks_api → swagger_petstore_open_api30}/http/http_call_back.rb +2 -2
  17. data/lib/{webhooks_and_callbacks_api → swagger_petstore_open_api30}/http/http_method_enum.rb +2 -2
  18. data/lib/{webhooks_and_callbacks_api → swagger_petstore_open_api30}/http/http_request.rb +2 -2
  19. data/lib/{webhooks_and_callbacks_api → swagger_petstore_open_api30}/http/http_response.rb +2 -2
  20. data/lib/{webhooks_and_callbacks_api → swagger_petstore_open_api30}/http/proxy_settings.rb +2 -2
  21. data/lib/{webhooks_and_callbacks_api → swagger_petstore_open_api30}/logging/configuration/api_logging_configuration.rb +2 -2
  22. data/lib/{webhooks_and_callbacks_api → swagger_petstore_open_api30}/logging/sdk_logger.rb +2 -2
  23. data/lib/swagger_petstore_open_api30/models/api_response.rb +118 -0
  24. data/lib/{webhooks_and_callbacks_api → swagger_petstore_open_api30}/models/base_model.rb +2 -2
  25. data/lib/{webhooks_and_callbacks_api/models/package.rb → swagger_petstore_open_api30/models/category.rb} +39 -29
  26. data/lib/swagger_petstore_open_api30/models/oauth_provider_error.rb +62 -0
  27. data/lib/swagger_petstore_open_api30/models/oauth_scope_petstore_auth.rb +36 -0
  28. data/lib/swagger_petstore_open_api30/models/oauth_token.rb +125 -0
  29. data/lib/swagger_petstore_open_api30/models/order.rb +167 -0
  30. data/lib/swagger_petstore_open_api30/models/order_status.rb +40 -0
  31. data/lib/swagger_petstore_open_api30/models/pet.rb +168 -0
  32. data/lib/swagger_petstore_open_api30/models/pet_status.rb +40 -0
  33. data/lib/{webhooks_and_callbacks_api/models/delivery_details.rb → swagger_petstore_open_api30/models/tag.rb} +36 -35
  34. data/lib/swagger_petstore_open_api30/models/user.rb +182 -0
  35. data/lib/{webhooks_and_callbacks_api → swagger_petstore_open_api30}/utilities/date_time_helper.rb +2 -2
  36. data/lib/{webhooks_and_callbacks_api → swagger_petstore_open_api30}/utilities/file_wrapper.rb +2 -2
  37. data/lib/swagger_petstore_open_api30/utilities/xml_utilities.rb +12 -0
  38. data/lib/swagger_petstore_open_api30.rb +62 -0
  39. metadata +37 -78
  40. data/lib/webhooks_and_callbacks_api/apis/orders_api.rb +0 -34
  41. data/lib/webhooks_and_callbacks_api/events/callbacks/callbacks_a_handler.rb +0 -66
  42. data/lib/webhooks_and_callbacks_api/events/callbacks/callbacks_b_handler.rb +0 -78
  43. data/lib/webhooks_and_callbacks_api/events/signature_verification_failure.rb +0 -33
  44. data/lib/webhooks_and_callbacks_api/events/signature_verification_result.rb +0 -14
  45. data/lib/webhooks_and_callbacks_api/events/unknown_event.rb +0 -32
  46. data/lib/webhooks_and_callbacks_api/events/webhooks/webhooks_a_handler.rb +0 -67
  47. data/lib/webhooks_and_callbacks_api/events/webhooks/webhooks_b_handler.rb +0 -86
  48. data/lib/webhooks_and_callbacks_api/events/webhooks/webhooks_c_handler.rb +0 -79
  49. data/lib/webhooks_and_callbacks_api/events/webhooks/webhooks_handler.rb +0 -67
  50. data/lib/webhooks_and_callbacks_api/events/webhooks/webhooks_no_verification_handler.rb +0 -39
  51. data/lib/webhooks_and_callbacks_api/exceptions/error_exception.rb +0 -57
  52. data/lib/webhooks_and_callbacks_api/http/auth/bearer_auth.rb +0 -53
  53. data/lib/webhooks_and_callbacks_api/models/address.rb +0 -114
  54. data/lib/webhooks_and_callbacks_api/models/audit_log_event.rb +0 -115
  55. data/lib/webhooks_and_callbacks_api/models/create_order_request.rb +0 -131
  56. data/lib/webhooks_and_callbacks_api/models/email_notification_callback.rb +0 -97
  57. data/lib/webhooks_and_callbacks_api/models/event.rb +0 -52
  58. data/lib/webhooks_and_callbacks_api/models/event_type.rb +0 -26
  59. data/lib/webhooks_and_callbacks_api/models/event_type1.rb +0 -26
  60. data/lib/webhooks_and_callbacks_api/models/event_type2.rb +0 -26
  61. data/lib/webhooks_and_callbacks_api/models/event_type3.rb +0 -26
  62. data/lib/webhooks_and_callbacks_api/models/fulfillment_callback.rb +0 -411
  63. data/lib/webhooks_and_callbacks_api/models/fulfillment_status.rb +0 -40
  64. data/lib/webhooks_and_callbacks_api/models/fulfillment_statuss.rb +0 -40
  65. data/lib/webhooks_and_callbacks_api/models/inventory_stock_decrease_event.rb +0 -90
  66. data/lib/webhooks_and_callbacks_api/models/inventory_stock_depleted_event.rb +0 -90
  67. data/lib/webhooks_and_callbacks_api/models/inventory_stock_increase_event.rb +0 -90
  68. data/lib/webhooks_and_callbacks_api/models/notification_callback.rb +0 -119
  69. data/lib/webhooks_and_callbacks_api/models/oauth_scope_oauth_acg.rb +0 -44
  70. data/lib/webhooks_and_callbacks_api/models/order.rb +0 -161
  71. data/lib/webhooks_and_callbacks_api/models/order_created_event.rb +0 -314
  72. data/lib/webhooks_and_callbacks_api/models/order_item.rb +0 -102
  73. data/lib/webhooks_and_callbacks_api/models/order_updated_event.rb +0 -100
  74. data/lib/webhooks_and_callbacks_api/models/payment_callback.rb +0 -167
  75. data/lib/webhooks_and_callbacks_api/models/payment_completed_event.rb +0 -98
  76. data/lib/webhooks_and_callbacks_api/models/payment_status.rb +0 -40
  77. data/lib/webhooks_and_callbacks_api/models/payment_status_created_event.rb +0 -89
  78. data/lib/webhooks_and_callbacks_api/models/payment_status_updated_event.rb +0 -89
  79. data/lib/webhooks_and_callbacks_api/models/primitive_collection_event.rb +0 -98
  80. data/lib/webhooks_and_callbacks_api/models/root_level_primitive_one_of_event_request.rb +0 -40
  81. data/lib/webhooks_and_callbacks_api/models/root_level_primitive_one_of_event_request1.rb +0 -40
  82. data/lib/webhooks_and_callbacks_api/models/sms_notification_callback.rb +0 -95
  83. data/lib/webhooks_and_callbacks_api/models/status.rb +0 -44
  84. data/lib/webhooks_and_callbacks_api/models/status1.rb +0 -36
  85. data/lib/webhooks_and_callbacks_api/models/status2.rb +0 -36
  86. data/lib/webhooks_and_callbacks_api/models/system_alert_notification_event.rb +0 -90
  87. data/lib/webhooks_and_callbacks_api/models/system_maintenance_notification_event.rb +0 -90
  88. data/lib/webhooks_and_callbacks_api/models/system_performance_notification_event.rb +0 -90
  89. data/lib/webhooks_and_callbacks_api/models/user_action_notification_event.rb +0 -90
  90. data/lib/webhooks_and_callbacks_api/models/user_preference_notification_event.rb +0 -90
  91. data/lib/webhooks_and_callbacks_api/models/user_status_notification_event.rb +0 -90
  92. data/lib/webhooks_and_callbacks_api/models/webhook.rb +0 -142
  93. data/lib/webhooks_and_callbacks_api/models/webhook_registration.rb +0 -103
  94. data/lib/webhooks_and_callbacks_api/models/webhook_update.rb +0 -105
  95. data/lib/webhooks_and_callbacks_api/utilities/union_type_lookup.rb +0 -172
  96. data/lib/webhooks_and_callbacks_api.rb +0 -122
@@ -0,0 +1,182 @@
1
+ # swagger_petstore_open_api30
2
+ #
3
+ # This file was automatically generated by
4
+ # APIMATIC v3.0 ( https://www.apimatic.io ).
5
+
6
+ module SwaggerPetstoreOpenApi30
7
+ # User Model.
8
+ class User < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # TODO: Write general description for this method
13
+ # @return [Integer]
14
+ attr_accessor :id
15
+
16
+ # TODO: Write general description for this method
17
+ # @return [String]
18
+ attr_accessor :username
19
+
20
+ # TODO: Write general description for this method
21
+ # @return [String]
22
+ attr_accessor :first_name
23
+
24
+ # TODO: Write general description for this method
25
+ # @return [String]
26
+ attr_accessor :last_name
27
+
28
+ # TODO: Write general description for this method
29
+ # @return [String]
30
+ attr_accessor :email
31
+
32
+ # TODO: Write general description for this method
33
+ # @return [String]
34
+ attr_accessor :password
35
+
36
+ # TODO: Write general description for this method
37
+ # @return [String]
38
+ attr_accessor :phone
39
+
40
+ # User Status
41
+ # @return [Integer]
42
+ attr_accessor :user_status
43
+
44
+ # A mapping from model property names to API property names.
45
+ def self.names
46
+ @_hash = {} if @_hash.nil?
47
+ @_hash['id'] = 'id'
48
+ @_hash['username'] = 'username'
49
+ @_hash['first_name'] = 'firstName'
50
+ @_hash['last_name'] = 'lastName'
51
+ @_hash['email'] = 'email'
52
+ @_hash['password'] = 'password'
53
+ @_hash['phone'] = 'phone'
54
+ @_hash['user_status'] = 'userStatus'
55
+ @_hash
56
+ end
57
+
58
+ # An array for optional fields
59
+ def self.optionals
60
+ %w[
61
+ id
62
+ username
63
+ first_name
64
+ last_name
65
+ email
66
+ password
67
+ phone
68
+ user_status
69
+ ]
70
+ end
71
+
72
+ # An array for nullable fields
73
+ def self.nullables
74
+ []
75
+ end
76
+
77
+ def initialize(id: SKIP, username: SKIP, first_name: SKIP, last_name: SKIP,
78
+ email: SKIP, password: SKIP, phone: SKIP, user_status: SKIP,
79
+ additional_properties: nil)
80
+ # Add additional model properties to the instance
81
+ additional_properties = {} if additional_properties.nil?
82
+
83
+ @id = id unless id == SKIP
84
+ @username = username unless username == SKIP
85
+ @first_name = first_name unless first_name == SKIP
86
+ @last_name = last_name unless last_name == SKIP
87
+ @email = email unless email == SKIP
88
+ @password = password unless password == SKIP
89
+ @phone = phone unless phone == SKIP
90
+ @user_status = user_status unless user_status == SKIP
91
+ @additional_properties = additional_properties
92
+ end
93
+
94
+ # Creates an instance of the object from a hash.
95
+ def self.from_hash(hash)
96
+ return nil unless hash
97
+
98
+ # Extract variables from the hash.
99
+ id = hash.key?('id') ? hash['id'] : SKIP
100
+ username = hash.key?('username') ? hash['username'] : SKIP
101
+ first_name = hash.key?('firstName') ? hash['firstName'] : SKIP
102
+ last_name = hash.key?('lastName') ? hash['lastName'] : SKIP
103
+ email = hash.key?('email') ? hash['email'] : SKIP
104
+ password = hash.key?('password') ? hash['password'] : SKIP
105
+ phone = hash.key?('phone') ? hash['phone'] : SKIP
106
+ user_status = hash.key?('userStatus') ? hash['userStatus'] : SKIP
107
+
108
+ # Create a new hash for additional properties, removing known properties.
109
+ new_hash = hash.reject { |k, _| names.value?(k) }
110
+
111
+ additional_properties = APIHelper.get_additional_properties(
112
+ new_hash, proc { |value| value }
113
+ )
114
+
115
+ # Create object from extracted values.
116
+ User.new(id: id,
117
+ username: username,
118
+ first_name: first_name,
119
+ last_name: last_name,
120
+ email: email,
121
+ password: password,
122
+ phone: phone,
123
+ user_status: user_status,
124
+ additional_properties: additional_properties)
125
+ end
126
+
127
+ def self.from_element(root)
128
+ id = XmlUtilities.from_element(root, 'id', Integer)
129
+ username = XmlUtilities.from_element(root, 'username', String)
130
+ first_name = XmlUtilities.from_element(root, 'firstName', String)
131
+ last_name = XmlUtilities.from_element(root, 'lastName', String)
132
+ email = XmlUtilities.from_element(root, 'email', String)
133
+ password = XmlUtilities.from_element(root, 'password', String)
134
+ phone = XmlUtilities.from_element(root, 'phone', String)
135
+ user_status = XmlUtilities.from_element(root, 'userStatus', Integer)
136
+
137
+ new(id: id,
138
+ username: username,
139
+ first_name: first_name,
140
+ last_name: last_name,
141
+ email: email,
142
+ password: password,
143
+ phone: phone,
144
+ user_status: user_status,
145
+ additional_properties: additional_properties)
146
+ end
147
+
148
+ def to_xml_element(doc, root_name)
149
+ root = doc.create_element(root_name)
150
+
151
+ XmlUtilities.add_as_subelement(doc, root, 'id', id)
152
+ XmlUtilities.add_as_subelement(doc, root, 'username', username)
153
+ XmlUtilities.add_as_subelement(doc, root, 'firstName', first_name)
154
+ XmlUtilities.add_as_subelement(doc, root, 'lastName', last_name)
155
+ XmlUtilities.add_as_subelement(doc, root, 'email', email)
156
+ XmlUtilities.add_as_subelement(doc, root, 'password', password)
157
+ XmlUtilities.add_as_subelement(doc, root, 'phone', phone)
158
+ XmlUtilities.add_as_subelement(doc, root, 'userStatus', user_status)
159
+ XmlUtilities.add_as_subelement(doc, root, 'additional_properties',
160
+ additional_properties)
161
+
162
+ root
163
+ end
164
+
165
+ # Provides a human-readable string representation of the object.
166
+ def to_s
167
+ class_name = self.class.name.split('::').last
168
+ "<#{class_name} id: #{@id}, username: #{@username}, first_name: #{@first_name}, last_name:"\
169
+ " #{@last_name}, email: #{@email}, password: #{@password}, phone: #{@phone}, user_status:"\
170
+ " #{@user_status}, additional_properties: #{@additional_properties}>"
171
+ end
172
+
173
+ # Provides a debugging-friendly string with detailed object information.
174
+ def inspect
175
+ class_name = self.class.name.split('::').last
176
+ "<#{class_name} id: #{@id.inspect}, username: #{@username.inspect}, first_name:"\
177
+ " #{@first_name.inspect}, last_name: #{@last_name.inspect}, email: #{@email.inspect},"\
178
+ " password: #{@password.inspect}, phone: #{@phone.inspect}, user_status:"\
179
+ " #{@user_status.inspect}, additional_properties: #{@additional_properties}>"
180
+ end
181
+ end
182
+ end
@@ -1,10 +1,10 @@
1
- # webhooks_and_callbacks_api
1
+ # swagger_petstore_open_api30
2
2
  #
3
3
  # This file was automatically generated by
4
4
  # APIMATIC v3.0 ( https://www.apimatic.io ).
5
5
 
6
6
  require 'date'
7
- module WebhooksAndCallbacksApi
7
+ module SwaggerPetstoreOpenApi30
8
8
  # A utility that supports dateTime conversion to different formats
9
9
  class DateTimeHelper < CoreLibrary::DateTimeHelper
10
10
  end
@@ -1,9 +1,9 @@
1
- # webhooks_and_callbacks_api
1
+ # swagger_petstore_open_api30
2
2
  #
3
3
  # This file was automatically generated by
4
4
  # APIMATIC v3.0 ( https://www.apimatic.io ).
5
5
 
6
- module WebhooksAndCallbacksApi
6
+ module SwaggerPetstoreOpenApi30
7
7
  # A utility to allow users to set the content-type for files
8
8
  class FileWrapper < CoreLibrary::FileWrapper
9
9
  # The constructor.
@@ -0,0 +1,12 @@
1
+ # swagger_petstore_open_api30
2
+ #
3
+ # This file was automatically generated by
4
+ # APIMATIC v3.0 ( https://www.apimatic.io ).
5
+
6
+ require 'nokogiri'
7
+
8
+ module SwaggerPetstoreOpenApi30
9
+ # A utility class for handling xml parsing.
10
+ class XmlUtilities < CoreLibrary::XmlHelper
11
+ end
12
+ end
@@ -0,0 +1,62 @@
1
+ # swagger_petstore_open_api30
2
+ #
3
+ # This file was automatically generated by
4
+ # APIMATIC v3.0 ( https://www.apimatic.io ).
5
+
6
+ require 'date'
7
+ require 'json'
8
+
9
+ require 'apimatic_core_interfaces'
10
+ require 'apimatic_core'
11
+ require 'apimatic_faraday_client_adapter'
12
+
13
+ require_relative 'swagger_petstore_open_api30/api_helper'
14
+ require_relative 'swagger_petstore_open_api30/client'
15
+
16
+ # Utilities
17
+ require_relative 'swagger_petstore_open_api30/utilities/file_wrapper'
18
+ require_relative 'swagger_petstore_open_api30/utilities/date_time_helper'
19
+ require_relative 'swagger_petstore_open_api30/utilities/xml_utilities'
20
+
21
+ # Http
22
+ require_relative 'swagger_petstore_open_api30/http/api_response'
23
+ require_relative 'swagger_petstore_open_api30/http/http_call_back'
24
+ require_relative 'swagger_petstore_open_api30/http/http_method_enum'
25
+ require_relative 'swagger_petstore_open_api30/http/http_request'
26
+ require_relative 'swagger_petstore_open_api30/http/http_response'
27
+ require_relative 'swagger_petstore_open_api30/http/proxy_settings'
28
+
29
+
30
+ # Logger
31
+ require_relative 'swagger_petstore_open_api30/logging/configuration/' \
32
+ 'api_logging_configuration'
33
+ require_relative 'swagger_petstore_open_api30/logging/sdk_logger'
34
+ require_relative 'swagger_petstore_open_api30/http/auth/petstore_auth'
35
+ require_relative 'swagger_petstore_open_api30/http/auth/api_key'
36
+
37
+ # Models
38
+ require_relative 'swagger_petstore_open_api30/models/base_model'
39
+ require_relative 'swagger_petstore_open_api30/models/order'
40
+ require_relative 'swagger_petstore_open_api30/models/category'
41
+ require_relative 'swagger_petstore_open_api30/models/user'
42
+ require_relative 'swagger_petstore_open_api30/models/tag'
43
+ require_relative 'swagger_petstore_open_api30/models/pet'
44
+ require_relative 'swagger_petstore_open_api30/models/api_response'
45
+ require_relative 'swagger_petstore_open_api30/models/oauth_token'
46
+ require_relative 'swagger_petstore_open_api30/models/pet_status'
47
+ require_relative 'swagger_petstore_open_api30/models/order_status'
48
+ require_relative 'swagger_petstore_open_api30/models/oauth_provider_error'
49
+ require_relative 'swagger_petstore_open_api30/models/oauth_scope_petstore_auth'
50
+
51
+ # Exceptions
52
+ require_relative 'swagger_petstore_open_api30/exceptions/api_exception'
53
+ require_relative 'swagger_petstore_open_api30/exceptions/' \
54
+ 'oauth_provider_exception'
55
+
56
+ require_relative 'swagger_petstore_open_api30/configuration'
57
+
58
+ # Controllers
59
+ require_relative 'swagger_petstore_open_api30/apis/base_api'
60
+ require_relative 'swagger_petstore_open_api30/apis/pet_api'
61
+ require_relative 'swagger_petstore_open_api30/apis/store_api'
62
+ require_relative 'swagger_petstore_open_api30/apis/user_api'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wesley-key-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0
4
+ version: 4.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kenyon Jacobs
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-05-12 00:00:00.000000000 Z
11
+ date: 2026-05-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: apimatic_core_interfaces
@@ -62,82 +62,41 @@ files:
62
62
  - LICENSE
63
63
  - README.md
64
64
  - bin/console
65
- - lib/webhooks_and_callbacks_api.rb
66
- - lib/webhooks_and_callbacks_api/api_helper.rb
67
- - lib/webhooks_and_callbacks_api/apis/base_api.rb
68
- - lib/webhooks_and_callbacks_api/apis/orders_api.rb
69
- - lib/webhooks_and_callbacks_api/client.rb
70
- - lib/webhooks_and_callbacks_api/configuration.rb
71
- - lib/webhooks_and_callbacks_api/events/callbacks/callbacks_a_handler.rb
72
- - lib/webhooks_and_callbacks_api/events/callbacks/callbacks_b_handler.rb
73
- - lib/webhooks_and_callbacks_api/events/signature_verification_failure.rb
74
- - lib/webhooks_and_callbacks_api/events/signature_verification_result.rb
75
- - lib/webhooks_and_callbacks_api/events/unknown_event.rb
76
- - lib/webhooks_and_callbacks_api/events/webhooks/webhooks_a_handler.rb
77
- - lib/webhooks_and_callbacks_api/events/webhooks/webhooks_b_handler.rb
78
- - lib/webhooks_and_callbacks_api/events/webhooks/webhooks_c_handler.rb
79
- - lib/webhooks_and_callbacks_api/events/webhooks/webhooks_handler.rb
80
- - lib/webhooks_and_callbacks_api/events/webhooks/webhooks_no_verification_handler.rb
81
- - lib/webhooks_and_callbacks_api/exceptions/api_exception.rb
82
- - lib/webhooks_and_callbacks_api/exceptions/error_exception.rb
83
- - lib/webhooks_and_callbacks_api/http/api_response.rb
84
- - lib/webhooks_and_callbacks_api/http/auth/api_key.rb
85
- - lib/webhooks_and_callbacks_api/http/auth/bearer_auth.rb
86
- - lib/webhooks_and_callbacks_api/http/http_call_back.rb
87
- - lib/webhooks_and_callbacks_api/http/http_method_enum.rb
88
- - lib/webhooks_and_callbacks_api/http/http_request.rb
89
- - lib/webhooks_and_callbacks_api/http/http_response.rb
90
- - lib/webhooks_and_callbacks_api/http/proxy_settings.rb
91
- - lib/webhooks_and_callbacks_api/logging/configuration/api_logging_configuration.rb
92
- - lib/webhooks_and_callbacks_api/logging/sdk_logger.rb
93
- - lib/webhooks_and_callbacks_api/models/address.rb
94
- - lib/webhooks_and_callbacks_api/models/audit_log_event.rb
95
- - lib/webhooks_and_callbacks_api/models/base_model.rb
96
- - lib/webhooks_and_callbacks_api/models/create_order_request.rb
97
- - lib/webhooks_and_callbacks_api/models/delivery_details.rb
98
- - lib/webhooks_and_callbacks_api/models/email_notification_callback.rb
99
- - lib/webhooks_and_callbacks_api/models/event.rb
100
- - lib/webhooks_and_callbacks_api/models/event_type.rb
101
- - lib/webhooks_and_callbacks_api/models/event_type1.rb
102
- - lib/webhooks_and_callbacks_api/models/event_type2.rb
103
- - lib/webhooks_and_callbacks_api/models/event_type3.rb
104
- - lib/webhooks_and_callbacks_api/models/fulfillment_callback.rb
105
- - lib/webhooks_and_callbacks_api/models/fulfillment_status.rb
106
- - lib/webhooks_and_callbacks_api/models/fulfillment_statuss.rb
107
- - lib/webhooks_and_callbacks_api/models/inventory_stock_decrease_event.rb
108
- - lib/webhooks_and_callbacks_api/models/inventory_stock_depleted_event.rb
109
- - lib/webhooks_and_callbacks_api/models/inventory_stock_increase_event.rb
110
- - lib/webhooks_and_callbacks_api/models/notification_callback.rb
111
- - lib/webhooks_and_callbacks_api/models/oauth_scope_oauth_acg.rb
112
- - lib/webhooks_and_callbacks_api/models/order.rb
113
- - lib/webhooks_and_callbacks_api/models/order_created_event.rb
114
- - lib/webhooks_and_callbacks_api/models/order_item.rb
115
- - lib/webhooks_and_callbacks_api/models/order_updated_event.rb
116
- - lib/webhooks_and_callbacks_api/models/package.rb
117
- - lib/webhooks_and_callbacks_api/models/payment_callback.rb
118
- - lib/webhooks_and_callbacks_api/models/payment_completed_event.rb
119
- - lib/webhooks_and_callbacks_api/models/payment_status.rb
120
- - lib/webhooks_and_callbacks_api/models/payment_status_created_event.rb
121
- - lib/webhooks_and_callbacks_api/models/payment_status_updated_event.rb
122
- - lib/webhooks_and_callbacks_api/models/primitive_collection_event.rb
123
- - lib/webhooks_and_callbacks_api/models/root_level_primitive_one_of_event_request.rb
124
- - lib/webhooks_and_callbacks_api/models/root_level_primitive_one_of_event_request1.rb
125
- - lib/webhooks_and_callbacks_api/models/sms_notification_callback.rb
126
- - lib/webhooks_and_callbacks_api/models/status.rb
127
- - lib/webhooks_and_callbacks_api/models/status1.rb
128
- - lib/webhooks_and_callbacks_api/models/status2.rb
129
- - lib/webhooks_and_callbacks_api/models/system_alert_notification_event.rb
130
- - lib/webhooks_and_callbacks_api/models/system_maintenance_notification_event.rb
131
- - lib/webhooks_and_callbacks_api/models/system_performance_notification_event.rb
132
- - lib/webhooks_and_callbacks_api/models/user_action_notification_event.rb
133
- - lib/webhooks_and_callbacks_api/models/user_preference_notification_event.rb
134
- - lib/webhooks_and_callbacks_api/models/user_status_notification_event.rb
135
- - lib/webhooks_and_callbacks_api/models/webhook.rb
136
- - lib/webhooks_and_callbacks_api/models/webhook_registration.rb
137
- - lib/webhooks_and_callbacks_api/models/webhook_update.rb
138
- - lib/webhooks_and_callbacks_api/utilities/date_time_helper.rb
139
- - lib/webhooks_and_callbacks_api/utilities/file_wrapper.rb
140
- - lib/webhooks_and_callbacks_api/utilities/union_type_lookup.rb
65
+ - lib/swagger_petstore_open_api30.rb
66
+ - lib/swagger_petstore_open_api30/api_helper.rb
67
+ - lib/swagger_petstore_open_api30/apis/base_api.rb
68
+ - lib/swagger_petstore_open_api30/apis/pet_api.rb
69
+ - lib/swagger_petstore_open_api30/apis/store_api.rb
70
+ - lib/swagger_petstore_open_api30/apis/user_api.rb
71
+ - lib/swagger_petstore_open_api30/client.rb
72
+ - lib/swagger_petstore_open_api30/configuration.rb
73
+ - lib/swagger_petstore_open_api30/exceptions/api_exception.rb
74
+ - lib/swagger_petstore_open_api30/exceptions/oauth_provider_exception.rb
75
+ - lib/swagger_petstore_open_api30/http/api_response.rb
76
+ - lib/swagger_petstore_open_api30/http/auth/api_key.rb
77
+ - lib/swagger_petstore_open_api30/http/auth/petstore_auth.rb
78
+ - lib/swagger_petstore_open_api30/http/http_call_back.rb
79
+ - lib/swagger_petstore_open_api30/http/http_method_enum.rb
80
+ - lib/swagger_petstore_open_api30/http/http_request.rb
81
+ - lib/swagger_petstore_open_api30/http/http_response.rb
82
+ - lib/swagger_petstore_open_api30/http/proxy_settings.rb
83
+ - lib/swagger_petstore_open_api30/logging/configuration/api_logging_configuration.rb
84
+ - lib/swagger_petstore_open_api30/logging/sdk_logger.rb
85
+ - lib/swagger_petstore_open_api30/models/api_response.rb
86
+ - lib/swagger_petstore_open_api30/models/base_model.rb
87
+ - lib/swagger_petstore_open_api30/models/category.rb
88
+ - lib/swagger_petstore_open_api30/models/oauth_provider_error.rb
89
+ - lib/swagger_petstore_open_api30/models/oauth_scope_petstore_auth.rb
90
+ - lib/swagger_petstore_open_api30/models/oauth_token.rb
91
+ - lib/swagger_petstore_open_api30/models/order.rb
92
+ - lib/swagger_petstore_open_api30/models/order_status.rb
93
+ - lib/swagger_petstore_open_api30/models/pet.rb
94
+ - lib/swagger_petstore_open_api30/models/pet_status.rb
95
+ - lib/swagger_petstore_open_api30/models/tag.rb
96
+ - lib/swagger_petstore_open_api30/models/user.rb
97
+ - lib/swagger_petstore_open_api30/utilities/date_time_helper.rb
98
+ - lib/swagger_petstore_open_api30/utilities/file_wrapper.rb
99
+ - lib/swagger_petstore_open_api30/utilities/xml_utilities.rb
141
100
  homepage: https://www.halefokodaqiby.com
142
101
  licenses:
143
102
  - MIT
@@ -1,34 +0,0 @@
1
- # webhooks_and_callbacks_api
2
- #
3
- # This file was automatically generated by
4
- # APIMATIC v3.0 ( https://www.apimatic.io ).
5
-
6
- module WebhooksAndCallbacksApi
7
- # OrdersApi
8
- class OrdersApi < BaseApi
9
- # Creates a new order and triggers callbacks for payment processing
10
- # @param [CreateOrderRequest] body Required parameter: TODO: type
11
- # description here
12
- # @return [ApiResponse] Complete http response with raw body and status code.
13
- def create_order(body)
14
- @api_call
15
- .request(new_request_builder(HttpMethodEnum::POST,
16
- '/orders',
17
- Server::DEFAULT)
18
- .header_param(new_parameter('application/json', key: 'Content-Type'))
19
- .body_param(new_parameter(body)
20
- .is_required(true))
21
- .header_param(new_parameter('application/json', key: 'accept'))
22
- .body_serializer(proc do |param| param.to_json unless param.nil? end)
23
- .auth(Or.new('ApiKey', 'BearerAuth')))
24
- .response(new_response_handler
25
- .deserializer(APIHelper.method(:custom_type_deserializer))
26
- .deserialize_into(Order.method(:from_hash))
27
- .is_api_response(true)
28
- .local_error('400',
29
- 'Invalid request',
30
- ErrorException))
31
- .execute
32
- end
33
- end
34
- end
@@ -1,66 +0,0 @@
1
- # webhooks_and_callbacks_api
2
- #
3
- # This file was automatically generated by
4
- # APIMATIC v3.0 ( https://www.apimatic.io ).
5
-
6
- module WebhooksAndCallbacksApi
7
- # CallbacksAHandler is responsible for verifying request signatures
8
- # and parsing incoming callbacksA events into strongly typed objects.
9
- class CallbacksAHandler
10
- include CoreLibrary
11
- # Creates a new instance of the CallbacksAHandler.
12
- # Initializes the handler.
13
- # @param [String] secret_key
14
- # The secret used to generate and validate HMAC signatures for verifying request authenticity.
15
- # @raise [ArgumentError] If the secret_key is not provided.
16
- def initialize(secret_key)
17
- raise ArgumentError, 'secret_key must be provided for signature verification.' unless secret_key
18
-
19
- @verifier = HmacSignatureVerifier.new(
20
- secret_key: secret_key,
21
- signature_header: 'X-Signature',
22
- hash_algorithm: 'sha256',
23
- encoder: HexEncoder.new
24
- )
25
- end
26
-
27
- # Perform signature verification and return the result.
28
- #
29
- # @param [Rack::Request] request The incoming HTTP request to verify.
30
- # @return [SignatureVerificationResult] The result of the signature verification.
31
- def verify(request)
32
- @verifier.verify(request)
33
- end
34
-
35
- # Verify the request signature and parse the event.
36
- #
37
- # @param [Rack::Request] request The incoming HTTP request containing the event payload.
38
- # @return[PaymentCallback, FulfillmentCallback,
39
- # SignatureVerificationFailure, UnknownEvent]
40
- # PaymentCallback, FulfillmentCallback for successful parsing;
41
- #
42
- # SignatureVerificationFailure when signature fails;
43
- # UnknownEvent for
44
- # unknown events.
45
- def verify_and_parse_event(request)
46
- unless request.respond_to?(:env) && request.env.is_a?(Hash)
47
- return SignatureVerificationFailure.new(['Invalid request env.'])
48
- end
49
-
50
- raw_body = RackRequestHelper.read_raw_body(request)
51
- return SignatureVerificationFailure.new(['Invalid request body.']) if raw_body.nil? || raw_body.empty?
52
-
53
- verification_result = verify(request)
54
- return SignatureVerificationFailure.new(verification_result.errors) unless verification_result.ok
55
-
56
- # Deserialize payload
57
- begin
58
- union = UnionTypeLookUp.get(:CallbacksA)
59
- raw = RackRequestHelper.read_raw_body(request)
60
- APIHelper.deserialize_union_type(union, raw, false, true)
61
- rescue StandardError => e
62
- UnknownEvent.new(['Deserialization failed.', e.message])
63
- end
64
- end
65
- end
66
- end
@@ -1,78 +0,0 @@
1
- # webhooks_and_callbacks_api
2
- #
3
- # This file was automatically generated by
4
- # APIMATIC v3.0 ( https://www.apimatic.io ).
5
-
6
- module WebhooksAndCallbacksApi
7
- # CallbacksBHandler is responsible for verifying request signatures
8
- # and parsing incoming callbacksB events into strongly typed objects.
9
- class CallbacksBHandler
10
- include CoreLibrary
11
- # Creates a new instance of the CallbacksBHandler.
12
- # Initializes the handler.
13
- # @param [String] secret_key
14
- # The secret used to generate and validate HMAC signatures for verifying request authenticity.
15
- # @raise [ArgumentError] If the secret_key is not provided.
16
- def initialize(secret_key)
17
- raise ArgumentError, 'secret_key must be provided for signature verification.' unless secret_key
18
-
19
- @verifier = HmacSignatureVerifier.new(
20
- secret_key: secret_key,
21
- signature_header: 'X-Signature',
22
- hash_algorithm: 'sha256',
23
- encoder: HexEncoder.new,
24
- canonical_message_builder: method(:_canonical_message_builder)
25
- )
26
- end
27
-
28
- # Perform signature verification and return the result.
29
- #
30
- # @param [Rack::Request] request The incoming HTTP request to verify.
31
- # @return [SignatureVerificationResult] The result of the signature verification.
32
- def verify(request)
33
- @verifier.verify(request)
34
- end
35
-
36
- # Verify the request signature and parse the event.
37
- #
38
- # @param [Rack::Request] request The incoming HTTP request containing the event payload.
39
- # @return[NotificationCallback, SignatureVerificationFailure, UnknownEvent]
40
- # NotificationCallback for successful parsing;
41
- #
42
- # SignatureVerificationFailure when signature fails;
43
- # UnknownEvent for
44
- # unknown events.
45
- def verify_and_parse_event(request)
46
- unless request.respond_to?(:env) && request.env.is_a?(Hash)
47
- return SignatureVerificationFailure.new(['Invalid request env.'])
48
- end
49
-
50
- raw_body = RackRequestHelper.read_raw_body(request)
51
- return SignatureVerificationFailure.new(['Invalid request body.']) if raw_body.nil? || raw_body.empty?
52
-
53
- verification_result = verify(request)
54
- return SignatureVerificationFailure.new(verification_result.errors) unless verification_result.ok
55
-
56
- # Deserialize payload
57
- begin
58
- union = UnionTypeLookUp.get(:CallbacksB)
59
- raw = RackRequestHelper.read_raw_body(request)
60
- APIHelper.deserialize_union_type(union, raw, false, true)
61
- rescue StandardError => e
62
- UnknownEvent.new(['Deserialization failed.', e.message])
63
- end
64
- end
65
-
66
- # Builds the canonical message from the request for the signature verification.
67
- #
68
- # @param [Rack::Request] request The incoming HTTP request.
69
- # @return [String, nil] The canonical message as a string, or nil if it could not be constructed.
70
- def _canonical_message_builder(request)
71
- payload = RackRequestHelper.read_raw_body(request)
72
- notification_type = JsonPointerHelper.get_value_by_json_pointer(
73
- APIHelper.json_deserialize(payload), 'notificationType'
74
- )
75
- notification_type.to_s
76
- end
77
- end
78
- end
@@ -1,33 +0,0 @@
1
- # webhooks_and_callbacks_api
2
- #
3
- # This file was automatically generated by
4
- # APIMATIC v3.0 ( https://www.apimatic.io ).
5
-
6
- module WebhooksAndCallbacksApi
7
- # Represents a signature verification failure.
8
- # @param errors [Array<String>] List of error messages describing why verification failed.
9
- class SignatureVerificationFailure
10
- # @return [Array<String>]
11
- attr_reader :errors
12
-
13
- # Initialize with the list of errors.
14
- # @param errors [Array<String>] Error messages that caused the failure.
15
- def initialize(errors)
16
- @errors = errors
17
- end
18
-
19
- # Provides a user-friendly string representation of the failure.
20
- # @return [String]
21
- def to_s
22
- class_name = self.class.name.split('::').last
23
- "<#{class_name} errors: #{@errors}>"
24
- end
25
-
26
- # Provides a debugging-friendly string with detailed object information.
27
- # @return [String]
28
- def inspect
29
- class_name = self.class.name.split('::').last
30
- "<#{class_name} errors: #{@errors.inspect}>"
31
- end
32
- end
33
- end
@@ -1,14 +0,0 @@
1
- # webhooks_and_callbacks_api
2
- #
3
- # This file was automatically generated by
4
- # APIMATIC v3.0 ( https://www.apimatic.io ).
5
-
6
- module WebhooksAndCallbacksApi
7
- # Outcome of signature verification.
8
- # @!attribute [r] ok
9
- # @return [Boolean] True if the signature verification passed.
10
- # @!attribute [r] errors
11
- # @return [Array<String>, nil] Optional list of errors raised by the verifier. None when ok=true.
12
- class SignatureVerificationResult < CoreLibrary::SignatureVerificationResult
13
- end
14
- end