wesley-key-sdk 4.2.0 → 4.3.1

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 +34 -47
  3. data/bin/console +4 -4
  4. data/lib/{swagger_petstore_open_api30 → webhooks_and_callbacks_api}/api_helper.rb +2 -2
  5. data/lib/{swagger_petstore_open_api30 → webhooks_and_callbacks_api}/apis/base_api.rb +3 -3
  6. data/lib/webhooks_and_callbacks_api/apis/orders_api.rb +34 -0
  7. data/lib/{swagger_petstore_open_api30 → webhooks_and_callbacks_api}/client.rb +15 -34
  8. data/lib/{swagger_petstore_open_api30 → webhooks_and_callbacks_api}/configuration.rb +20 -30
  9. data/lib/webhooks_and_callbacks_api/events/callbacks/callbacks_a_handler.rb +66 -0
  10. data/lib/webhooks_and_callbacks_api/events/callbacks/callbacks_b_handler.rb +78 -0
  11. data/lib/webhooks_and_callbacks_api/events/signature_verification_failure.rb +33 -0
  12. data/lib/webhooks_and_callbacks_api/events/signature_verification_result.rb +14 -0
  13. data/lib/webhooks_and_callbacks_api/events/unknown_event.rb +32 -0
  14. data/lib/webhooks_and_callbacks_api/events/webhooks/webhooks_a_handler.rb +67 -0
  15. data/lib/webhooks_and_callbacks_api/events/webhooks/webhooks_b_handler.rb +86 -0
  16. data/lib/webhooks_and_callbacks_api/events/webhooks/webhooks_c_handler.rb +79 -0
  17. data/lib/webhooks_and_callbacks_api/events/webhooks/webhooks_handler.rb +67 -0
  18. data/lib/webhooks_and_callbacks_api/events/webhooks/webhooks_no_verification_handler.rb +39 -0
  19. data/lib/{swagger_petstore_open_api30 → webhooks_and_callbacks_api}/exceptions/api_exception.rb +2 -2
  20. data/lib/webhooks_and_callbacks_api/exceptions/error_exception.rb +57 -0
  21. data/lib/{swagger_petstore_open_api30 → webhooks_and_callbacks_api}/http/api_response.rb +2 -2
  22. data/lib/{swagger_petstore_open_api30 → webhooks_and_callbacks_api}/http/auth/api_key.rb +15 -15
  23. data/lib/webhooks_and_callbacks_api/http/auth/bearer_auth.rb +53 -0
  24. data/lib/{swagger_petstore_open_api30 → webhooks_and_callbacks_api}/http/http_call_back.rb +2 -2
  25. data/lib/{swagger_petstore_open_api30 → webhooks_and_callbacks_api}/http/http_method_enum.rb +2 -2
  26. data/lib/{swagger_petstore_open_api30 → webhooks_and_callbacks_api}/http/http_request.rb +2 -2
  27. data/lib/{swagger_petstore_open_api30 → webhooks_and_callbacks_api}/http/http_response.rb +2 -2
  28. data/lib/{swagger_petstore_open_api30 → webhooks_and_callbacks_api}/http/proxy_settings.rb +2 -2
  29. data/lib/{swagger_petstore_open_api30 → webhooks_and_callbacks_api}/logging/configuration/api_logging_configuration.rb +2 -2
  30. data/lib/{swagger_petstore_open_api30 → webhooks_and_callbacks_api}/logging/sdk_logger.rb +2 -2
  31. data/lib/webhooks_and_callbacks_api/models/address.rb +114 -0
  32. data/lib/webhooks_and_callbacks_api/models/audit_log_event.rb +115 -0
  33. data/lib/{swagger_petstore_open_api30 → webhooks_and_callbacks_api}/models/base_model.rb +2 -2
  34. data/lib/webhooks_and_callbacks_api/models/create_order_request.rb +131 -0
  35. data/lib/{swagger_petstore_open_api30/models/tag.rb → webhooks_and_callbacks_api/models/delivery_details.rb} +35 -36
  36. data/lib/webhooks_and_callbacks_api/models/email_notification_callback.rb +97 -0
  37. data/lib/webhooks_and_callbacks_api/models/event.rb +52 -0
  38. data/lib/webhooks_and_callbacks_api/models/event_type.rb +26 -0
  39. data/lib/webhooks_and_callbacks_api/models/event_type1.rb +26 -0
  40. data/lib/webhooks_and_callbacks_api/models/event_type2.rb +26 -0
  41. data/lib/webhooks_and_callbacks_api/models/event_type3.rb +26 -0
  42. data/lib/webhooks_and_callbacks_api/models/fulfillment_callback.rb +411 -0
  43. data/lib/webhooks_and_callbacks_api/models/fulfillment_status.rb +40 -0
  44. data/lib/webhooks_and_callbacks_api/models/fulfillment_statuss.rb +40 -0
  45. data/lib/webhooks_and_callbacks_api/models/inventory_stock_decrease_event.rb +90 -0
  46. data/lib/webhooks_and_callbacks_api/models/inventory_stock_depleted_event.rb +90 -0
  47. data/lib/webhooks_and_callbacks_api/models/inventory_stock_increase_event.rb +90 -0
  48. data/lib/webhooks_and_callbacks_api/models/notification_callback.rb +119 -0
  49. data/lib/webhooks_and_callbacks_api/models/oauth_scope_oauth_acg.rb +44 -0
  50. data/lib/webhooks_and_callbacks_api/models/order.rb +161 -0
  51. data/lib/webhooks_and_callbacks_api/models/order_created_event.rb +314 -0
  52. data/lib/webhooks_and_callbacks_api/models/order_item.rb +102 -0
  53. data/lib/webhooks_and_callbacks_api/models/order_updated_event.rb +100 -0
  54. data/lib/{swagger_petstore_open_api30/models/category.rb → webhooks_and_callbacks_api/models/package.rb} +29 -39
  55. data/lib/webhooks_and_callbacks_api/models/payment_callback.rb +167 -0
  56. data/lib/webhooks_and_callbacks_api/models/payment_completed_event.rb +98 -0
  57. data/lib/webhooks_and_callbacks_api/models/payment_status.rb +40 -0
  58. data/lib/webhooks_and_callbacks_api/models/payment_status_created_event.rb +89 -0
  59. data/lib/webhooks_and_callbacks_api/models/payment_status_updated_event.rb +89 -0
  60. data/lib/webhooks_and_callbacks_api/models/primitive_collection_event.rb +98 -0
  61. data/lib/webhooks_and_callbacks_api/models/root_level_primitive_one_of_event_request.rb +40 -0
  62. data/lib/webhooks_and_callbacks_api/models/root_level_primitive_one_of_event_request1.rb +40 -0
  63. data/lib/webhooks_and_callbacks_api/models/sms_notification_callback.rb +95 -0
  64. data/lib/webhooks_and_callbacks_api/models/status.rb +44 -0
  65. data/lib/webhooks_and_callbacks_api/models/status1.rb +36 -0
  66. data/lib/webhooks_and_callbacks_api/models/status2.rb +36 -0
  67. data/lib/webhooks_and_callbacks_api/models/system_alert_notification_event.rb +90 -0
  68. data/lib/webhooks_and_callbacks_api/models/system_maintenance_notification_event.rb +90 -0
  69. data/lib/webhooks_and_callbacks_api/models/system_performance_notification_event.rb +90 -0
  70. data/lib/webhooks_and_callbacks_api/models/user_action_notification_event.rb +90 -0
  71. data/lib/webhooks_and_callbacks_api/models/user_preference_notification_event.rb +90 -0
  72. data/lib/webhooks_and_callbacks_api/models/user_status_notification_event.rb +90 -0
  73. data/lib/webhooks_and_callbacks_api/models/webhook.rb +142 -0
  74. data/lib/webhooks_and_callbacks_api/models/webhook_registration.rb +103 -0
  75. data/lib/webhooks_and_callbacks_api/models/webhook_update.rb +105 -0
  76. data/lib/{swagger_petstore_open_api30 → webhooks_and_callbacks_api}/utilities/date_time_helper.rb +2 -2
  77. data/lib/{swagger_petstore_open_api30 → webhooks_and_callbacks_api}/utilities/file_wrapper.rb +2 -2
  78. data/lib/webhooks_and_callbacks_api/utilities/union_type_lookup.rb +172 -0
  79. data/lib/webhooks_and_callbacks_api.rb +122 -0
  80. metadata +78 -37
  81. data/lib/swagger_petstore_open_api30/apis/pet_api.rb +0 -287
  82. data/lib/swagger_petstore_open_api30/apis/store_api.rb +0 -131
  83. data/lib/swagger_petstore_open_api30/apis/user_api.rb +0 -233
  84. data/lib/swagger_petstore_open_api30/exceptions/oauth_provider_exception.rb +0 -64
  85. data/lib/swagger_petstore_open_api30/http/auth/petstore_auth.rb +0 -112
  86. data/lib/swagger_petstore_open_api30/models/api_response.rb +0 -118
  87. data/lib/swagger_petstore_open_api30/models/oauth_provider_error.rb +0 -62
  88. data/lib/swagger_petstore_open_api30/models/oauth_scope_petstore_auth.rb +0 -36
  89. data/lib/swagger_petstore_open_api30/models/oauth_token.rb +0 -125
  90. data/lib/swagger_petstore_open_api30/models/order.rb +0 -167
  91. data/lib/swagger_petstore_open_api30/models/order_status.rb +0 -40
  92. data/lib/swagger_petstore_open_api30/models/pet.rb +0 -168
  93. data/lib/swagger_petstore_open_api30/models/pet_status.rb +0 -40
  94. data/lib/swagger_petstore_open_api30/models/user.rb +0 -182
  95. data/lib/swagger_petstore_open_api30/utilities/xml_utilities.rb +0 -12
  96. data/lib/swagger_petstore_open_api30.rb +0 -62
@@ -1,182 +0,0 @@
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,12 +0,0 @@
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
@@ -1,62 +0,0 @@
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'