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.
- checksums.yaml +4 -4
- data/README.md +34 -47
- data/bin/console +4 -4
- data/lib/{swagger_petstore_open_api30 → webhooks_and_callbacks_api}/api_helper.rb +2 -2
- data/lib/{swagger_petstore_open_api30 → webhooks_and_callbacks_api}/apis/base_api.rb +3 -3
- data/lib/webhooks_and_callbacks_api/apis/orders_api.rb +34 -0
- data/lib/{swagger_petstore_open_api30 → webhooks_and_callbacks_api}/client.rb +15 -34
- data/lib/{swagger_petstore_open_api30 → webhooks_and_callbacks_api}/configuration.rb +20 -30
- data/lib/webhooks_and_callbacks_api/events/callbacks/callbacks_a_handler.rb +66 -0
- data/lib/webhooks_and_callbacks_api/events/callbacks/callbacks_b_handler.rb +78 -0
- data/lib/webhooks_and_callbacks_api/events/signature_verification_failure.rb +33 -0
- data/lib/webhooks_and_callbacks_api/events/signature_verification_result.rb +14 -0
- data/lib/webhooks_and_callbacks_api/events/unknown_event.rb +32 -0
- data/lib/webhooks_and_callbacks_api/events/webhooks/webhooks_a_handler.rb +67 -0
- data/lib/webhooks_and_callbacks_api/events/webhooks/webhooks_b_handler.rb +86 -0
- data/lib/webhooks_and_callbacks_api/events/webhooks/webhooks_c_handler.rb +79 -0
- data/lib/webhooks_and_callbacks_api/events/webhooks/webhooks_handler.rb +67 -0
- data/lib/webhooks_and_callbacks_api/events/webhooks/webhooks_no_verification_handler.rb +39 -0
- data/lib/{swagger_petstore_open_api30 → webhooks_and_callbacks_api}/exceptions/api_exception.rb +2 -2
- data/lib/webhooks_and_callbacks_api/exceptions/error_exception.rb +57 -0
- data/lib/{swagger_petstore_open_api30 → webhooks_and_callbacks_api}/http/api_response.rb +2 -2
- data/lib/{swagger_petstore_open_api30 → webhooks_and_callbacks_api}/http/auth/api_key.rb +15 -15
- data/lib/webhooks_and_callbacks_api/http/auth/bearer_auth.rb +53 -0
- data/lib/{swagger_petstore_open_api30 → webhooks_and_callbacks_api}/http/http_call_back.rb +2 -2
- data/lib/{swagger_petstore_open_api30 → webhooks_and_callbacks_api}/http/http_method_enum.rb +2 -2
- data/lib/{swagger_petstore_open_api30 → webhooks_and_callbacks_api}/http/http_request.rb +2 -2
- data/lib/{swagger_petstore_open_api30 → webhooks_and_callbacks_api}/http/http_response.rb +2 -2
- data/lib/{swagger_petstore_open_api30 → webhooks_and_callbacks_api}/http/proxy_settings.rb +2 -2
- data/lib/{swagger_petstore_open_api30 → webhooks_and_callbacks_api}/logging/configuration/api_logging_configuration.rb +2 -2
- data/lib/{swagger_petstore_open_api30 → webhooks_and_callbacks_api}/logging/sdk_logger.rb +2 -2
- data/lib/webhooks_and_callbacks_api/models/address.rb +114 -0
- data/lib/webhooks_and_callbacks_api/models/audit_log_event.rb +115 -0
- data/lib/{swagger_petstore_open_api30 → webhooks_and_callbacks_api}/models/base_model.rb +2 -2
- data/lib/webhooks_and_callbacks_api/models/create_order_request.rb +131 -0
- data/lib/{swagger_petstore_open_api30/models/tag.rb → webhooks_and_callbacks_api/models/delivery_details.rb} +35 -36
- data/lib/webhooks_and_callbacks_api/models/email_notification_callback.rb +97 -0
- data/lib/webhooks_and_callbacks_api/models/event.rb +52 -0
- data/lib/webhooks_and_callbacks_api/models/event_type.rb +26 -0
- data/lib/webhooks_and_callbacks_api/models/event_type1.rb +26 -0
- data/lib/webhooks_and_callbacks_api/models/event_type2.rb +26 -0
- data/lib/webhooks_and_callbacks_api/models/event_type3.rb +26 -0
- data/lib/webhooks_and_callbacks_api/models/fulfillment_callback.rb +411 -0
- data/lib/webhooks_and_callbacks_api/models/fulfillment_status.rb +40 -0
- data/lib/webhooks_and_callbacks_api/models/fulfillment_statuss.rb +40 -0
- data/lib/webhooks_and_callbacks_api/models/inventory_stock_decrease_event.rb +90 -0
- data/lib/webhooks_and_callbacks_api/models/inventory_stock_depleted_event.rb +90 -0
- data/lib/webhooks_and_callbacks_api/models/inventory_stock_increase_event.rb +90 -0
- data/lib/webhooks_and_callbacks_api/models/notification_callback.rb +119 -0
- data/lib/webhooks_and_callbacks_api/models/oauth_scope_oauth_acg.rb +44 -0
- data/lib/webhooks_and_callbacks_api/models/order.rb +161 -0
- data/lib/webhooks_and_callbacks_api/models/order_created_event.rb +314 -0
- data/lib/webhooks_and_callbacks_api/models/order_item.rb +102 -0
- data/lib/webhooks_and_callbacks_api/models/order_updated_event.rb +100 -0
- data/lib/{swagger_petstore_open_api30/models/category.rb → webhooks_and_callbacks_api/models/package.rb} +29 -39
- data/lib/webhooks_and_callbacks_api/models/payment_callback.rb +167 -0
- data/lib/webhooks_and_callbacks_api/models/payment_completed_event.rb +98 -0
- data/lib/webhooks_and_callbacks_api/models/payment_status.rb +40 -0
- data/lib/webhooks_and_callbacks_api/models/payment_status_created_event.rb +89 -0
- data/lib/webhooks_and_callbacks_api/models/payment_status_updated_event.rb +89 -0
- data/lib/webhooks_and_callbacks_api/models/primitive_collection_event.rb +98 -0
- data/lib/webhooks_and_callbacks_api/models/root_level_primitive_one_of_event_request.rb +40 -0
- data/lib/webhooks_and_callbacks_api/models/root_level_primitive_one_of_event_request1.rb +40 -0
- data/lib/webhooks_and_callbacks_api/models/sms_notification_callback.rb +95 -0
- data/lib/webhooks_and_callbacks_api/models/status.rb +44 -0
- data/lib/webhooks_and_callbacks_api/models/status1.rb +36 -0
- data/lib/webhooks_and_callbacks_api/models/status2.rb +36 -0
- data/lib/webhooks_and_callbacks_api/models/system_alert_notification_event.rb +90 -0
- data/lib/webhooks_and_callbacks_api/models/system_maintenance_notification_event.rb +90 -0
- data/lib/webhooks_and_callbacks_api/models/system_performance_notification_event.rb +90 -0
- data/lib/webhooks_and_callbacks_api/models/user_action_notification_event.rb +90 -0
- data/lib/webhooks_and_callbacks_api/models/user_preference_notification_event.rb +90 -0
- data/lib/webhooks_and_callbacks_api/models/user_status_notification_event.rb +90 -0
- data/lib/webhooks_and_callbacks_api/models/webhook.rb +142 -0
- data/lib/webhooks_and_callbacks_api/models/webhook_registration.rb +103 -0
- data/lib/webhooks_and_callbacks_api/models/webhook_update.rb +105 -0
- data/lib/{swagger_petstore_open_api30 → webhooks_and_callbacks_api}/utilities/date_time_helper.rb +2 -2
- data/lib/{swagger_petstore_open_api30 → webhooks_and_callbacks_api}/utilities/file_wrapper.rb +2 -2
- data/lib/webhooks_and_callbacks_api/utilities/union_type_lookup.rb +172 -0
- data/lib/webhooks_and_callbacks_api.rb +122 -0
- metadata +78 -37
- data/lib/swagger_petstore_open_api30/apis/pet_api.rb +0 -287
- data/lib/swagger_petstore_open_api30/apis/store_api.rb +0 -131
- data/lib/swagger_petstore_open_api30/apis/user_api.rb +0 -233
- data/lib/swagger_petstore_open_api30/exceptions/oauth_provider_exception.rb +0 -64
- data/lib/swagger_petstore_open_api30/http/auth/petstore_auth.rb +0 -112
- data/lib/swagger_petstore_open_api30/models/api_response.rb +0 -118
- data/lib/swagger_petstore_open_api30/models/oauth_provider_error.rb +0 -62
- data/lib/swagger_petstore_open_api30/models/oauth_scope_petstore_auth.rb +0 -36
- data/lib/swagger_petstore_open_api30/models/oauth_token.rb +0 -125
- data/lib/swagger_petstore_open_api30/models/order.rb +0 -167
- data/lib/swagger_petstore_open_api30/models/order_status.rb +0 -40
- data/lib/swagger_petstore_open_api30/models/pet.rb +0 -168
- data/lib/swagger_petstore_open_api30/models/pet_status.rb +0 -40
- data/lib/swagger_petstore_open_api30/models/user.rb +0 -182
- data/lib/swagger_petstore_open_api30/utilities/xml_utilities.rb +0 -12
- data/lib/swagger_petstore_open_api30.rb +0 -62
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
# webhooks_and_callbacks_api
|
|
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 'webhooks_and_callbacks_api/api_helper'
|
|
14
|
+
require_relative 'webhooks_and_callbacks_api/client'
|
|
15
|
+
|
|
16
|
+
# Utilities
|
|
17
|
+
require_relative 'webhooks_and_callbacks_api/utilities/file_wrapper'
|
|
18
|
+
require_relative 'webhooks_and_callbacks_api/utilities/date_time_helper'
|
|
19
|
+
require_relative 'webhooks_and_callbacks_api/utilities/union_type_lookup'
|
|
20
|
+
|
|
21
|
+
# Http
|
|
22
|
+
require_relative 'webhooks_and_callbacks_api/http/api_response'
|
|
23
|
+
require_relative 'webhooks_and_callbacks_api/http/http_call_back'
|
|
24
|
+
require_relative 'webhooks_and_callbacks_api/http/http_method_enum'
|
|
25
|
+
require_relative 'webhooks_and_callbacks_api/http/http_request'
|
|
26
|
+
require_relative 'webhooks_and_callbacks_api/http/http_response'
|
|
27
|
+
require_relative 'webhooks_and_callbacks_api/http/proxy_settings'
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
# Logger
|
|
31
|
+
require_relative 'webhooks_and_callbacks_api/logging/configuration/' \
|
|
32
|
+
'api_logging_configuration'
|
|
33
|
+
require_relative 'webhooks_and_callbacks_api/logging/sdk_logger'
|
|
34
|
+
require_relative 'webhooks_and_callbacks_api/http/auth/api_key'
|
|
35
|
+
require_relative 'webhooks_and_callbacks_api/http/auth/bearer_auth'
|
|
36
|
+
|
|
37
|
+
# Events
|
|
38
|
+
require_relative 'webhooks_and_callbacks_api/events/webhooks/webhooks_handler'
|
|
39
|
+
require_relative 'webhooks_and_callbacks_api/events/webhooks/webhooks_a_handler'
|
|
40
|
+
require_relative 'webhooks_and_callbacks_api/events/webhooks/webhooks_b_handler'
|
|
41
|
+
require_relative 'webhooks_and_callbacks_api/events/webhooks/webhooks_c_handler'
|
|
42
|
+
require_relative 'webhooks_and_callbacks_api/events/webhooks/' \
|
|
43
|
+
'webhooks_no_verification_handler'
|
|
44
|
+
require_relative 'webhooks_and_callbacks_api/events/callbacks/' \
|
|
45
|
+
'callbacks_a_handler'
|
|
46
|
+
require_relative 'webhooks_and_callbacks_api/events/callbacks/' \
|
|
47
|
+
'callbacks_b_handler'
|
|
48
|
+
require_relative 'webhooks_and_callbacks_api/events/' \
|
|
49
|
+
'signature_verification_failure'
|
|
50
|
+
require_relative 'webhooks_and_callbacks_api/events/' \
|
|
51
|
+
'signature_verification_result'
|
|
52
|
+
require_relative 'webhooks_and_callbacks_api/events/unknown_event'
|
|
53
|
+
|
|
54
|
+
# Models
|
|
55
|
+
require_relative 'webhooks_and_callbacks_api/models/base_model'
|
|
56
|
+
require_relative 'webhooks_and_callbacks_api/models/create_order_request'
|
|
57
|
+
require_relative 'webhooks_and_callbacks_api/models/order_item'
|
|
58
|
+
require_relative 'webhooks_and_callbacks_api/models/order'
|
|
59
|
+
require_relative 'webhooks_and_callbacks_api/models/payment_callback'
|
|
60
|
+
require_relative 'webhooks_and_callbacks_api/models/fulfillment_callback'
|
|
61
|
+
require_relative 'webhooks_and_callbacks_api/models/email_notification_callback'
|
|
62
|
+
require_relative 'webhooks_and_callbacks_api/models/sms_notification_callback'
|
|
63
|
+
require_relative 'webhooks_and_callbacks_api/models/notification_callback'
|
|
64
|
+
require_relative 'webhooks_and_callbacks_api/models/webhook_registration'
|
|
65
|
+
require_relative 'webhooks_and_callbacks_api/models/webhook_update'
|
|
66
|
+
require_relative 'webhooks_and_callbacks_api/models/webhook'
|
|
67
|
+
require_relative 'webhooks_and_callbacks_api/models/order_created_event'
|
|
68
|
+
require_relative 'webhooks_and_callbacks_api/models/order_updated_event'
|
|
69
|
+
require_relative 'webhooks_and_callbacks_api/models/payment_completed_event'
|
|
70
|
+
require_relative 'webhooks_and_callbacks_api/models/' \
|
|
71
|
+
'payment_status_updated_event'
|
|
72
|
+
require_relative 'webhooks_and_callbacks_api/models/' \
|
|
73
|
+
'payment_status_created_event'
|
|
74
|
+
require_relative 'webhooks_and_callbacks_api/models/primitive_collection_event'
|
|
75
|
+
require_relative 'webhooks_and_callbacks_api/models/audit_log_event'
|
|
76
|
+
require_relative 'webhooks_and_callbacks_api/models/' \
|
|
77
|
+
'user_action_notification_event'
|
|
78
|
+
require_relative 'webhooks_and_callbacks_api/models/' \
|
|
79
|
+
'user_status_notification_event'
|
|
80
|
+
require_relative 'webhooks_and_callbacks_api/models/' \
|
|
81
|
+
'user_preference_notification_event'
|
|
82
|
+
require_relative 'webhooks_and_callbacks_api/models/' \
|
|
83
|
+
'system_alert_notification_event'
|
|
84
|
+
require_relative 'webhooks_and_callbacks_api/models/' \
|
|
85
|
+
'system_maintenance_notification_event'
|
|
86
|
+
require_relative 'webhooks_and_callbacks_api/models/' \
|
|
87
|
+
'system_performance_notification_event'
|
|
88
|
+
require_relative 'webhooks_and_callbacks_api/models/' \
|
|
89
|
+
'inventory_stock_increase_event'
|
|
90
|
+
require_relative 'webhooks_and_callbacks_api/models/' \
|
|
91
|
+
'inventory_stock_decrease_event'
|
|
92
|
+
require_relative 'webhooks_and_callbacks_api/models/' \
|
|
93
|
+
'inventory_stock_depleted_event'
|
|
94
|
+
require_relative 'webhooks_and_callbacks_api/models/address'
|
|
95
|
+
require_relative 'webhooks_and_callbacks_api/models/delivery_details'
|
|
96
|
+
require_relative 'webhooks_and_callbacks_api/models/package'
|
|
97
|
+
require_relative 'webhooks_and_callbacks_api/models/oauth_scope_oauth_acg'
|
|
98
|
+
require_relative 'webhooks_and_callbacks_api/models/event'
|
|
99
|
+
require_relative 'webhooks_and_callbacks_api/models/event_type'
|
|
100
|
+
require_relative 'webhooks_and_callbacks_api/models/event_type1'
|
|
101
|
+
require_relative 'webhooks_and_callbacks_api/models/event_type2'
|
|
102
|
+
require_relative 'webhooks_and_callbacks_api/models/event_type3'
|
|
103
|
+
require_relative 'webhooks_and_callbacks_api/models/fulfillment_status'
|
|
104
|
+
require_relative 'webhooks_and_callbacks_api/models/fulfillment_statuss'
|
|
105
|
+
require_relative 'webhooks_and_callbacks_api/models/payment_status'
|
|
106
|
+
require_relative 'webhooks_and_callbacks_api/models/' \
|
|
107
|
+
'root_level_primitive_one_of_event_request'
|
|
108
|
+
require_relative 'webhooks_and_callbacks_api/models/' \
|
|
109
|
+
'root_level_primitive_one_of_event_request1'
|
|
110
|
+
require_relative 'webhooks_and_callbacks_api/models/status'
|
|
111
|
+
require_relative 'webhooks_and_callbacks_api/models/status1'
|
|
112
|
+
require_relative 'webhooks_and_callbacks_api/models/status2'
|
|
113
|
+
|
|
114
|
+
# Exceptions
|
|
115
|
+
require_relative 'webhooks_and_callbacks_api/exceptions/api_exception'
|
|
116
|
+
require_relative 'webhooks_and_callbacks_api/exceptions/error_exception'
|
|
117
|
+
|
|
118
|
+
require_relative 'webhooks_and_callbacks_api/configuration'
|
|
119
|
+
|
|
120
|
+
# Controllers
|
|
121
|
+
require_relative 'webhooks_and_callbacks_api/apis/base_api'
|
|
122
|
+
require_relative 'webhooks_and_callbacks_api/apis/orders_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.
|
|
4
|
+
version: 4.3.1
|
|
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-
|
|
11
|
+
date: 2026-05-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: apimatic_core_interfaces
|
|
@@ -62,41 +62,82 @@ files:
|
|
|
62
62
|
- LICENSE
|
|
63
63
|
- README.md
|
|
64
64
|
- bin/console
|
|
65
|
-
- lib/
|
|
66
|
-
- lib/
|
|
67
|
-
- lib/
|
|
68
|
-
- lib/
|
|
69
|
-
- lib/
|
|
70
|
-
- lib/
|
|
71
|
-
- lib/
|
|
72
|
-
- lib/
|
|
73
|
-
- lib/
|
|
74
|
-
- lib/
|
|
75
|
-
- lib/
|
|
76
|
-
- lib/
|
|
77
|
-
- lib/
|
|
78
|
-
- lib/
|
|
79
|
-
- lib/
|
|
80
|
-
- lib/
|
|
81
|
-
- lib/
|
|
82
|
-
- lib/
|
|
83
|
-
- lib/
|
|
84
|
-
- lib/
|
|
85
|
-
- lib/
|
|
86
|
-
- lib/
|
|
87
|
-
- lib/
|
|
88
|
-
- lib/
|
|
89
|
-
- lib/
|
|
90
|
-
- lib/
|
|
91
|
-
- lib/
|
|
92
|
-
- lib/
|
|
93
|
-
- lib/
|
|
94
|
-
- lib/
|
|
95
|
-
- lib/
|
|
96
|
-
- lib/
|
|
97
|
-
- lib/
|
|
98
|
-
- lib/
|
|
99
|
-
- lib/
|
|
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
|
|
100
141
|
homepage: https://www.halefokodaqiby.com
|
|
101
142
|
licenses:
|
|
102
143
|
- MIT
|
|
@@ -1,287 +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
|
-
# PetApi
|
|
8
|
-
class PetApi < BaseApi
|
|
9
|
-
# Update an existing pet by Id.
|
|
10
|
-
# @param [String] name Required parameter: TODO: type description here
|
|
11
|
-
# @param [Array[String]] photo_urls Required parameter: TODO: type
|
|
12
|
-
# description here
|
|
13
|
-
# @param [Integer] id Optional parameter: TODO: type description here
|
|
14
|
-
# @param [Category] category Optional parameter: TODO: type description
|
|
15
|
-
# here
|
|
16
|
-
# @param [Array[Tag]] tags Optional parameter: TODO: type description here
|
|
17
|
-
# @param [PetStatus] status Optional parameter: pet status in the store
|
|
18
|
-
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
19
|
-
def update_pet(name,
|
|
20
|
-
photo_urls,
|
|
21
|
-
id: nil,
|
|
22
|
-
category: nil,
|
|
23
|
-
tags: nil,
|
|
24
|
-
status: nil)
|
|
25
|
-
@api_call
|
|
26
|
-
.request(new_request_builder(HttpMethodEnum::PUT,
|
|
27
|
-
'/pet',
|
|
28
|
-
Server::DEFAULT)
|
|
29
|
-
.form_param(new_parameter(name, key: 'name')
|
|
30
|
-
.is_required(true))
|
|
31
|
-
.form_param(new_parameter(photo_urls, key: 'photoUrls')
|
|
32
|
-
.is_required(true))
|
|
33
|
-
.form_param(new_parameter(id, key: 'id'))
|
|
34
|
-
.form_param(new_parameter(category, key: 'category'))
|
|
35
|
-
.form_param(new_parameter(tags, key: 'tags'))
|
|
36
|
-
.form_param(new_parameter(status, key: 'status'))
|
|
37
|
-
.header_param(new_parameter('application/x-www-form-urlencoded', key: 'content-type'))
|
|
38
|
-
.header_param(new_parameter('application/json', key: 'accept'))
|
|
39
|
-
.auth(Single.new('petstore_auth')))
|
|
40
|
-
.response(new_response_handler
|
|
41
|
-
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
42
|
-
.deserialize_into(Pet.method(:from_hash))
|
|
43
|
-
.is_api_response(true)
|
|
44
|
-
.local_error('400',
|
|
45
|
-
'Invalid ID supplied',
|
|
46
|
-
APIException)
|
|
47
|
-
.local_error('404',
|
|
48
|
-
'Pet not found',
|
|
49
|
-
APIException)
|
|
50
|
-
.local_error('422',
|
|
51
|
-
'Validation exception',
|
|
52
|
-
APIException)
|
|
53
|
-
.local_error('default',
|
|
54
|
-
'Unexpected error',
|
|
55
|
-
APIException))
|
|
56
|
-
.execute
|
|
57
|
-
end
|
|
58
|
-
|
|
59
|
-
# Add a new pet to the store.
|
|
60
|
-
# @param [String] name Required parameter: TODO: type description here
|
|
61
|
-
# @param [Array[String]] photo_urls Required parameter: TODO: type
|
|
62
|
-
# description here
|
|
63
|
-
# @param [Integer] id Optional parameter: TODO: type description here
|
|
64
|
-
# @param [Category] category Optional parameter: TODO: type description
|
|
65
|
-
# here
|
|
66
|
-
# @param [Array[Tag]] tags Optional parameter: TODO: type description here
|
|
67
|
-
# @param [PetStatus] status Optional parameter: pet status in the store
|
|
68
|
-
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
69
|
-
def add_pet(name,
|
|
70
|
-
photo_urls,
|
|
71
|
-
id: nil,
|
|
72
|
-
category: nil,
|
|
73
|
-
tags: nil,
|
|
74
|
-
status: nil)
|
|
75
|
-
@api_call
|
|
76
|
-
.request(new_request_builder(HttpMethodEnum::POST,
|
|
77
|
-
'/pet',
|
|
78
|
-
Server::DEFAULT)
|
|
79
|
-
.form_param(new_parameter(name, key: 'name')
|
|
80
|
-
.is_required(true))
|
|
81
|
-
.form_param(new_parameter(photo_urls, key: 'photoUrls')
|
|
82
|
-
.is_required(true))
|
|
83
|
-
.form_param(new_parameter(id, key: 'id'))
|
|
84
|
-
.form_param(new_parameter(category, key: 'category'))
|
|
85
|
-
.form_param(new_parameter(tags, key: 'tags'))
|
|
86
|
-
.form_param(new_parameter(status, key: 'status'))
|
|
87
|
-
.header_param(new_parameter('application/x-www-form-urlencoded', key: 'content-type'))
|
|
88
|
-
.header_param(new_parameter('application/json', key: 'accept'))
|
|
89
|
-
.auth(Single.new('petstore_auth')))
|
|
90
|
-
.response(new_response_handler
|
|
91
|
-
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
92
|
-
.deserialize_into(Pet.method(:from_hash))
|
|
93
|
-
.is_api_response(true)
|
|
94
|
-
.local_error('400',
|
|
95
|
-
'Invalid input',
|
|
96
|
-
APIException)
|
|
97
|
-
.local_error('422',
|
|
98
|
-
'Validation exception',
|
|
99
|
-
APIException)
|
|
100
|
-
.local_error('default',
|
|
101
|
-
'Unexpected error',
|
|
102
|
-
APIException))
|
|
103
|
-
.execute
|
|
104
|
-
end
|
|
105
|
-
|
|
106
|
-
# Multiple status values can be provided with comma separated strings.
|
|
107
|
-
# @param [PetStatus] status Optional parameter: Status values that need to
|
|
108
|
-
# be considered for filter
|
|
109
|
-
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
110
|
-
def find_pets_by_status(status: nil)
|
|
111
|
-
@api_call
|
|
112
|
-
.request(new_request_builder(HttpMethodEnum::GET,
|
|
113
|
-
'/pet/findByStatus',
|
|
114
|
-
Server::DEFAULT)
|
|
115
|
-
.query_param(new_parameter(status, key: 'status'))
|
|
116
|
-
.header_param(new_parameter('application/json', key: 'accept'))
|
|
117
|
-
.auth(Single.new('petstore_auth')))
|
|
118
|
-
.response(new_response_handler
|
|
119
|
-
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
120
|
-
.deserialize_into(Pet.method(:from_hash))
|
|
121
|
-
.is_api_response(true)
|
|
122
|
-
.is_response_array(true)
|
|
123
|
-
.local_error('400',
|
|
124
|
-
'Invalid status value',
|
|
125
|
-
APIException)
|
|
126
|
-
.local_error('default',
|
|
127
|
-
'Unexpected error',
|
|
128
|
-
APIException))
|
|
129
|
-
.execute
|
|
130
|
-
end
|
|
131
|
-
|
|
132
|
-
# Multiple tags can be provided with comma separated strings. Use tag1,
|
|
133
|
-
# tag2, tag3 for testing.
|
|
134
|
-
# @param [Array[String]] tags Optional parameter: Tags to filter by
|
|
135
|
-
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
136
|
-
def find_pets_by_tags(tags: nil)
|
|
137
|
-
@api_call
|
|
138
|
-
.request(new_request_builder(HttpMethodEnum::GET,
|
|
139
|
-
'/pet/findByTags',
|
|
140
|
-
Server::DEFAULT)
|
|
141
|
-
.query_param(new_parameter(tags, key: 'tags'))
|
|
142
|
-
.header_param(new_parameter('application/json', key: 'accept'))
|
|
143
|
-
.auth(Single.new('petstore_auth')))
|
|
144
|
-
.response(new_response_handler
|
|
145
|
-
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
146
|
-
.deserialize_into(Pet.method(:from_hash))
|
|
147
|
-
.is_api_response(true)
|
|
148
|
-
.is_response_array(true)
|
|
149
|
-
.local_error('400',
|
|
150
|
-
'Invalid tag value',
|
|
151
|
-
APIException)
|
|
152
|
-
.local_error('default',
|
|
153
|
-
'Unexpected error',
|
|
154
|
-
APIException))
|
|
155
|
-
.execute
|
|
156
|
-
end
|
|
157
|
-
|
|
158
|
-
# Returns a single pet.
|
|
159
|
-
# @param [Integer] pet_id Required parameter: ID of pet to return
|
|
160
|
-
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
161
|
-
def get_pet_by_id(pet_id)
|
|
162
|
-
@api_call
|
|
163
|
-
.request(new_request_builder(HttpMethodEnum::GET,
|
|
164
|
-
'/pet/{petId}',
|
|
165
|
-
Server::DEFAULT)
|
|
166
|
-
.template_param(new_parameter(pet_id, key: 'petId')
|
|
167
|
-
.is_required(true)
|
|
168
|
-
.should_encode(true))
|
|
169
|
-
.header_param(new_parameter('application/json', key: 'accept'))
|
|
170
|
-
.auth(Or.new('api_key', 'petstore_auth')))
|
|
171
|
-
.response(new_response_handler
|
|
172
|
-
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
173
|
-
.deserialize_into(Pet.method(:from_hash))
|
|
174
|
-
.is_api_response(true)
|
|
175
|
-
.local_error('400',
|
|
176
|
-
'Invalid ID supplied',
|
|
177
|
-
APIException)
|
|
178
|
-
.local_error('404',
|
|
179
|
-
'Pet not found',
|
|
180
|
-
APIException)
|
|
181
|
-
.local_error('default',
|
|
182
|
-
'Unexpected error',
|
|
183
|
-
APIException))
|
|
184
|
-
.execute
|
|
185
|
-
end
|
|
186
|
-
|
|
187
|
-
# Updates a pet resource based on the form data.
|
|
188
|
-
# @param [Integer] pet_id Required parameter: ID of pet that needs to be
|
|
189
|
-
# updated
|
|
190
|
-
# @param [String] name Optional parameter: Name of pet that needs to be
|
|
191
|
-
# updated
|
|
192
|
-
# @param [String] status Optional parameter: Status of pet that needs to be
|
|
193
|
-
# updated
|
|
194
|
-
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
195
|
-
def update_pet_with_form(pet_id,
|
|
196
|
-
name: nil,
|
|
197
|
-
status: nil)
|
|
198
|
-
@api_call
|
|
199
|
-
.request(new_request_builder(HttpMethodEnum::POST,
|
|
200
|
-
'/pet/{petId}',
|
|
201
|
-
Server::DEFAULT)
|
|
202
|
-
.template_param(new_parameter(pet_id, key: 'petId')
|
|
203
|
-
.is_required(true)
|
|
204
|
-
.should_encode(true))
|
|
205
|
-
.query_param(new_parameter(name, key: 'name'))
|
|
206
|
-
.query_param(new_parameter(status, key: 'status'))
|
|
207
|
-
.header_param(new_parameter('application/json', key: 'accept'))
|
|
208
|
-
.auth(Single.new('petstore_auth')))
|
|
209
|
-
.response(new_response_handler
|
|
210
|
-
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
211
|
-
.deserialize_into(Pet.method(:from_hash))
|
|
212
|
-
.is_api_response(true)
|
|
213
|
-
.local_error('400',
|
|
214
|
-
'Invalid input',
|
|
215
|
-
APIException)
|
|
216
|
-
.local_error('default',
|
|
217
|
-
'Unexpected error',
|
|
218
|
-
APIException))
|
|
219
|
-
.execute
|
|
220
|
-
end
|
|
221
|
-
|
|
222
|
-
# Delete a pet.
|
|
223
|
-
# @param [Integer] pet_id Required parameter: Pet id to delete
|
|
224
|
-
# @param [String] api_key Optional parameter: TODO: type description here
|
|
225
|
-
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
226
|
-
def delete_pet(pet_id,
|
|
227
|
-
api_key: nil)
|
|
228
|
-
@api_call
|
|
229
|
-
.request(new_request_builder(HttpMethodEnum::DELETE,
|
|
230
|
-
'/pet/{petId}',
|
|
231
|
-
Server::DEFAULT)
|
|
232
|
-
.template_param(new_parameter(pet_id, key: 'petId')
|
|
233
|
-
.is_required(true)
|
|
234
|
-
.should_encode(true))
|
|
235
|
-
.header_param(new_parameter(api_key, key: 'api_key'))
|
|
236
|
-
.auth(Single.new('petstore_auth')))
|
|
237
|
-
.response(new_response_handler
|
|
238
|
-
.is_response_void(true)
|
|
239
|
-
.is_api_response(true)
|
|
240
|
-
.local_error('400',
|
|
241
|
-
'Invalid pet value',
|
|
242
|
-
APIException)
|
|
243
|
-
.local_error('default',
|
|
244
|
-
'Unexpected error',
|
|
245
|
-
APIException))
|
|
246
|
-
.execute
|
|
247
|
-
end
|
|
248
|
-
|
|
249
|
-
# Upload image of the pet.
|
|
250
|
-
# @param [Integer] pet_id Required parameter: ID of pet to update
|
|
251
|
-
# @param [String] additional_metadata Optional parameter: Additional
|
|
252
|
-
# Metadata
|
|
253
|
-
# @param [File | UploadIO] body Optional parameter: TODO: type description
|
|
254
|
-
# here
|
|
255
|
-
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
256
|
-
def upload_file(pet_id,
|
|
257
|
-
additional_metadata: nil,
|
|
258
|
-
body: nil)
|
|
259
|
-
@api_call
|
|
260
|
-
.request(new_request_builder(HttpMethodEnum::POST,
|
|
261
|
-
'/pet/{petId}/uploadImage',
|
|
262
|
-
Server::DEFAULT)
|
|
263
|
-
.template_param(new_parameter(pet_id, key: 'petId')
|
|
264
|
-
.is_required(true)
|
|
265
|
-
.should_encode(true))
|
|
266
|
-
.query_param(new_parameter(additional_metadata, key: 'additionalMetadata'))
|
|
267
|
-
.multipart_param(new_parameter(body, key: 'body')
|
|
268
|
-
.default_content_type('application/octet-stream'))
|
|
269
|
-
.header_param(new_parameter('application/json', key: 'accept'))
|
|
270
|
-
.auth(Single.new('petstore_auth')))
|
|
271
|
-
.response(new_response_handler
|
|
272
|
-
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
273
|
-
.deserialize_into(ApiResponse.method(:from_hash))
|
|
274
|
-
.is_api_response(true)
|
|
275
|
-
.local_error('400',
|
|
276
|
-
'No file uploaded',
|
|
277
|
-
APIException)
|
|
278
|
-
.local_error('404',
|
|
279
|
-
'Pet not found',
|
|
280
|
-
APIException)
|
|
281
|
-
.local_error('default',
|
|
282
|
-
'Unexpected error',
|
|
283
|
-
APIException))
|
|
284
|
-
.execute
|
|
285
|
-
end
|
|
286
|
-
end
|
|
287
|
-
end
|