wesley-key-sdk 3.0.7 → 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 +156 -132
- data/bin/console +4 -4
- data/lib/webhooks_and_callbacks_api/api_helper.rb +10 -0
- data/lib/{cypress_test_api/controllers/base_controller.rb → webhooks_and_callbacks_api/apis/base_api.rb} +17 -10
- data/lib/webhooks_and_callbacks_api/apis/orders_api.rb +34 -0
- data/lib/webhooks_and_callbacks_api/client.rb +76 -0
- data/lib/{cypress_test_api → webhooks_and_callbacks_api}/configuration.rb +61 -46
- 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/{cypress_test_api → webhooks_and_callbacks_api}/exceptions/api_exception.rb +4 -4
- data/lib/webhooks_and_callbacks_api/exceptions/error_exception.rb +57 -0
- data/lib/webhooks_and_callbacks_api/http/api_response.rb +19 -0
- data/lib/webhooks_and_callbacks_api/http/auth/api_key.rb +52 -0
- data/lib/webhooks_and_callbacks_api/http/auth/bearer_auth.rb +53 -0
- data/lib/webhooks_and_callbacks_api/http/http_call_back.rb +10 -0
- data/lib/webhooks_and_callbacks_api/http/http_method_enum.rb +10 -0
- data/lib/webhooks_and_callbacks_api/http/http_request.rb +10 -0
- data/lib/webhooks_and_callbacks_api/http/http_response.rb +10 -0
- data/lib/{cypress_test_api → webhooks_and_callbacks_api}/http/proxy_settings.rb +4 -4
- data/lib/webhooks_and_callbacks_api/logging/configuration/api_logging_configuration.rb +186 -0
- data/lib/webhooks_and_callbacks_api/logging/sdk_logger.rb +17 -0
- 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/{cypress_test_api → webhooks_and_callbacks_api}/models/base_model.rb +4 -4
- data/lib/webhooks_and_callbacks_api/models/create_order_request.rb +131 -0
- data/lib/webhooks_and_callbacks_api/models/delivery_details.rb +104 -0
- 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/{cypress_test_api/models/o_auth_scope_o_auth_acg_enum.rb → webhooks_and_callbacks_api/models/oauth_scope_oauth_acg.rb} +19 -19
- 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/webhooks_and_callbacks_api/models/package.rb +95 -0
- 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/webhooks_and_callbacks_api/utilities/date_time_helper.rb +11 -0
- data/lib/{cypress_test_api → webhooks_and_callbacks_api}/utilities/file_wrapper.rb +4 -4
- data/lib/webhooks_and_callbacks_api/utilities/union_type_lookup.rb +172 -0
- data/lib/webhooks_and_callbacks_api.rb +122 -0
- metadata +78 -64
- data/lib/cypress_test_api/api_helper.rb +0 -10
- data/lib/cypress_test_api/client.rb +0 -58
- data/lib/cypress_test_api/controllers/api_controller.rb +0 -102
- data/lib/cypress_test_api/http/http_call_back.rb +0 -10
- data/lib/cypress_test_api/http/http_method_enum.rb +0 -10
- data/lib/cypress_test_api/http/http_request.rb +0 -10
- data/lib/cypress_test_api/http/http_response.rb +0 -10
- data/lib/cypress_test_api/models/custom_enum.rb +0 -40
- data/lib/cypress_test_api/models/deer.rb +0 -68
- data/lib/cypress_test_api/models/item.rb +0 -166
- data/lib/cypress_test_api/models/item_response.rb +0 -80
- data/lib/cypress_test_api/models/lion.rb +0 -68
- data/lib/cypress_test_api/models/message.rb +0 -68
- data/lib/cypress_test_api/models/message2.rb +0 -71
- data/lib/cypress_test_api/models/multiple_arrays_request.rb +0 -70
- data/lib/cypress_test_api/models/nac_tag.rb +0 -265
- data/lib/cypress_test_api/models/response_http400.rb +0 -62
- data/lib/cypress_test_api/models/response_http404.rb +0 -62
- data/lib/cypress_test_api/models/status11_enum.rb +0 -40
- data/lib/cypress_test_api/models/status1_enum.rb +0 -40
- data/lib/cypress_test_api/models/status_enum.rb +0 -40
- data/lib/cypress_test_api/models/tokens_request.rb +0 -60
- data/lib/cypress_test_api/utilities/date_time_helper.rb +0 -11
- data/lib/cypress_test_api.rb +0 -55
- data/test/controllers/controller_test_base.rb +0 -23
- data/test/controllers/test_api_controller.rb +0 -40
- data/test/http_response_catcher.rb +0 -19
|
@@ -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: 3.
|
|
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-
|
|
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
|
|
@@ -52,34 +52,6 @@ dependencies:
|
|
|
52
52
|
- - "~>"
|
|
53
53
|
- !ruby/object:Gem::Version
|
|
54
54
|
version: 0.1.6
|
|
55
|
-
- !ruby/object:Gem::Dependency
|
|
56
|
-
name: minitest
|
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
|
58
|
-
requirements:
|
|
59
|
-
- - "~>"
|
|
60
|
-
- !ruby/object:Gem::Version
|
|
61
|
-
version: 5.24.0
|
|
62
|
-
type: :development
|
|
63
|
-
prerelease: false
|
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
65
|
-
requirements:
|
|
66
|
-
- - "~>"
|
|
67
|
-
- !ruby/object:Gem::Version
|
|
68
|
-
version: 5.24.0
|
|
69
|
-
- !ruby/object:Gem::Dependency
|
|
70
|
-
name: minitest-proveit
|
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
|
72
|
-
requirements:
|
|
73
|
-
- - "~>"
|
|
74
|
-
- !ruby/object:Gem::Version
|
|
75
|
-
version: '1.0'
|
|
76
|
-
type: :development
|
|
77
|
-
prerelease: false
|
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
79
|
-
requirements:
|
|
80
|
-
- - "~>"
|
|
81
|
-
- !ruby/object:Gem::Version
|
|
82
|
-
version: '1.0'
|
|
83
55
|
description: Omnis nisi cumque si
|
|
84
56
|
email:
|
|
85
57
|
- goro@mailinator.com
|
|
@@ -90,40 +62,82 @@ files:
|
|
|
90
62
|
- LICENSE
|
|
91
63
|
- README.md
|
|
92
64
|
- bin/console
|
|
93
|
-
- lib/
|
|
94
|
-
- lib/
|
|
95
|
-
- lib/
|
|
96
|
-
- lib/
|
|
97
|
-
- lib/
|
|
98
|
-
- lib/
|
|
99
|
-
- lib/
|
|
100
|
-
- lib/
|
|
101
|
-
- lib/
|
|
102
|
-
- lib/
|
|
103
|
-
- lib/
|
|
104
|
-
- lib/
|
|
105
|
-
- lib/
|
|
106
|
-
- lib/
|
|
107
|
-
- lib/
|
|
108
|
-
- lib/
|
|
109
|
-
- lib/
|
|
110
|
-
- lib/
|
|
111
|
-
- lib/
|
|
112
|
-
- lib/
|
|
113
|
-
- lib/
|
|
114
|
-
- lib/
|
|
115
|
-
- lib/
|
|
116
|
-
- lib/
|
|
117
|
-
- lib/
|
|
118
|
-
- lib/
|
|
119
|
-
- lib/
|
|
120
|
-
- lib/
|
|
121
|
-
- lib/
|
|
122
|
-
- lib/
|
|
123
|
-
- lib/
|
|
124
|
-
-
|
|
125
|
-
-
|
|
126
|
-
-
|
|
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
|
|
127
141
|
homepage: https://www.halefokodaqiby.com
|
|
128
142
|
licenses:
|
|
129
143
|
- MIT
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
# cypress_test_api
|
|
2
|
-
#
|
|
3
|
-
# This file was automatically generated by APIMATIC v3.0
|
|
4
|
-
# ( https://www.apimatic.io ).
|
|
5
|
-
|
|
6
|
-
module CypressTestApi
|
|
7
|
-
# cypress_test_api client class.
|
|
8
|
-
class Client
|
|
9
|
-
include CoreLibrary
|
|
10
|
-
attr_reader :config
|
|
11
|
-
|
|
12
|
-
def user_agent_detail
|
|
13
|
-
config.user_agent_detail
|
|
14
|
-
end
|
|
15
|
-
|
|
16
|
-
# Access to client controller.
|
|
17
|
-
# @return [APIController] Returns the controller instance.
|
|
18
|
-
def client
|
|
19
|
-
@client ||= APIController.new @global_configuration
|
|
20
|
-
end
|
|
21
|
-
|
|
22
|
-
def initialize(
|
|
23
|
-
connection: nil, adapter: :net_http_persistent, timeout: 60,
|
|
24
|
-
max_retries: 0, retry_interval: 1, backoff_factor: 2,
|
|
25
|
-
retry_statuses: [408, 413, 429, 500, 502, 503, 504, 521, 522, 524],
|
|
26
|
-
retry_methods: %i[get put], http_callback: nil, proxy_settings: nil,
|
|
27
|
-
environment: Environment::PRODUCTION, default_host: 'www.example.com',
|
|
28
|
-
config: nil
|
|
29
|
-
)
|
|
30
|
-
@config = if config.nil?
|
|
31
|
-
Configuration.new(connection: connection, adapter: adapter,
|
|
32
|
-
timeout: timeout, max_retries: max_retries,
|
|
33
|
-
retry_interval: retry_interval,
|
|
34
|
-
backoff_factor: backoff_factor,
|
|
35
|
-
retry_statuses: retry_statuses,
|
|
36
|
-
retry_methods: retry_methods,
|
|
37
|
-
http_callback: http_callback,
|
|
38
|
-
proxy_settings: proxy_settings,
|
|
39
|
-
environment: environment,
|
|
40
|
-
default_host: default_host)
|
|
41
|
-
else
|
|
42
|
-
config
|
|
43
|
-
end
|
|
44
|
-
|
|
45
|
-
@global_configuration = GlobalConfiguration.new(client_configuration: @config)
|
|
46
|
-
.base_uri_executor(@config.method(:get_base_uri))
|
|
47
|
-
.global_errors(BaseController::GLOBAL_ERRORS)
|
|
48
|
-
.user_agent(BaseController.user_agent)
|
|
49
|
-
end
|
|
50
|
-
|
|
51
|
-
# Creates a client directly from environment variables.
|
|
52
|
-
def self.from_env(**overrides)
|
|
53
|
-
default_config = Configuration.build_default_config_from_env
|
|
54
|
-
new_config = default_config.clone_with(**overrides)
|
|
55
|
-
new(config: new_config)
|
|
56
|
-
end
|
|
57
|
-
end
|
|
58
|
-
end
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
# cypress_test_api
|
|
2
|
-
#
|
|
3
|
-
# This file was automatically generated by APIMATIC v3.0
|
|
4
|
-
# ( https://www.apimatic.io ).
|
|
5
|
-
|
|
6
|
-
module CypressTestApi
|
|
7
|
-
# APIController
|
|
8
|
-
class APIController < BaseController
|
|
9
|
-
# Creates a new resource in the system.
|
|
10
|
-
# @param [Status11Enum] status Required parameter: The status of the items
|
|
11
|
-
# to filter by.
|
|
12
|
-
# @param [Item] body Optional parameter: Custom model with additional
|
|
13
|
-
# properties
|
|
14
|
-
# @return [Object] Response from the API call.
|
|
15
|
-
def createanitem(status,
|
|
16
|
-
body: nil)
|
|
17
|
-
@api_call
|
|
18
|
-
.request(new_request_builder(HttpMethodEnum::POST,
|
|
19
|
-
'/items/{status}',
|
|
20
|
-
Server::DEFAULT)
|
|
21
|
-
.template_param(new_parameter(status, key: 'status')
|
|
22
|
-
.should_encode(true))
|
|
23
|
-
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
|
24
|
-
.body_param(new_parameter(body))
|
|
25
|
-
.header_param(new_parameter('application/json', key: 'accept'))
|
|
26
|
-
.body_serializer(proc do |param| param.to_json unless param.nil? end))
|
|
27
|
-
.response(new_response_handler
|
|
28
|
-
.deserializer(APIHelper.method(:json_deserialize))
|
|
29
|
-
.local_error('400',
|
|
30
|
-
'Bad Syntax',
|
|
31
|
-
APIException)
|
|
32
|
-
.local_error('401',
|
|
33
|
-
'Unauthorized',
|
|
34
|
-
APIException)
|
|
35
|
-
.local_error('403',
|
|
36
|
-
'Permission Denied',
|
|
37
|
-
APIException))
|
|
38
|
-
.execute
|
|
39
|
-
end
|
|
40
|
-
|
|
41
|
-
# TODO: type endpoint description here
|
|
42
|
-
# @param [String] id Required parameter: The ID of the item to retrieve
|
|
43
|
-
# @param [String] value Required parameter: The value of the item to
|
|
44
|
-
# retrieve
|
|
45
|
-
# @return [Item] Response from the API call.
|
|
46
|
-
def getanitemby_id(id,
|
|
47
|
-
value)
|
|
48
|
-
@api_call
|
|
49
|
-
.request(new_request_builder(HttpMethodEnum::GET,
|
|
50
|
-
'/items/{id}',
|
|
51
|
-
Server::DEFAULT)
|
|
52
|
-
.template_param(new_parameter(id, key: 'id')
|
|
53
|
-
.should_encode(true))
|
|
54
|
-
.query_param(new_parameter(value, key: 'value'))
|
|
55
|
-
.header_param(new_parameter('application/json', key: 'accept')))
|
|
56
|
-
.response(new_response_handler
|
|
57
|
-
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
58
|
-
.deserialize_into(Item.method(:from_hash)))
|
|
59
|
-
.execute
|
|
60
|
-
end
|
|
61
|
-
|
|
62
|
-
# Generates a new OAuth token with the specified scopes.
|
|
63
|
-
# @param [TokensRequest] body Optional parameter: TODO: type description
|
|
64
|
-
# here
|
|
65
|
-
# @return [void] Response from the API call.
|
|
66
|
-
def create_o_auth_token(body: nil)
|
|
67
|
-
@api_call
|
|
68
|
-
.request(new_request_builder(HttpMethodEnum::POST,
|
|
69
|
-
'/tokens',
|
|
70
|
-
Server::DEFAULT)
|
|
71
|
-
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
|
72
|
-
.body_param(new_parameter(body))
|
|
73
|
-
.body_serializer(proc do |param| param.to_json unless param.nil? end))
|
|
74
|
-
.response(new_response_handler
|
|
75
|
-
.is_response_void(true)
|
|
76
|
-
.local_error('400',
|
|
77
|
-
'Bad request',
|
|
78
|
-
APIException))
|
|
79
|
-
.execute
|
|
80
|
-
end
|
|
81
|
-
|
|
82
|
-
# This endpoint accepts a complex structure with multiple arrays.
|
|
83
|
-
# @param [MultipleArraysRequest] body Optional parameter: TODO: type
|
|
84
|
-
# description here
|
|
85
|
-
# @return [void] Response from the API call.
|
|
86
|
-
def test_endpointwith_arrays(body: nil)
|
|
87
|
-
@api_call
|
|
88
|
-
.request(new_request_builder(HttpMethodEnum::POST,
|
|
89
|
-
'/multiple-arrays',
|
|
90
|
-
Server::DEFAULT)
|
|
91
|
-
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
|
92
|
-
.body_param(new_parameter(body))
|
|
93
|
-
.body_serializer(proc do |param| param.to_json unless param.nil? end))
|
|
94
|
-
.response(new_response_handler
|
|
95
|
-
.is_response_void(true)
|
|
96
|
-
.local_error('400',
|
|
97
|
-
'Bad request',
|
|
98
|
-
APIException))
|
|
99
|
-
.execute
|
|
100
|
-
end
|
|
101
|
-
end
|
|
102
|
-
end
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
# cypress_test_api
|
|
2
|
-
#
|
|
3
|
-
# This file was automatically generated by APIMATIC v3.0
|
|
4
|
-
# ( https://www.apimatic.io ).
|
|
5
|
-
|
|
6
|
-
module CypressTestApi
|
|
7
|
-
# HttpCallBack allows defining callables for pre and post API calls.
|
|
8
|
-
class HttpCallBack < CoreLibrary::HttpCallback
|
|
9
|
-
end
|
|
10
|
-
end
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
# cypress_test_api
|
|
2
|
-
#
|
|
3
|
-
# This file was automatically generated by APIMATIC v3.0
|
|
4
|
-
# ( https://www.apimatic.io ).
|
|
5
|
-
|
|
6
|
-
module CypressTestApi
|
|
7
|
-
# CustomEnum.
|
|
8
|
-
class CustomEnum
|
|
9
|
-
CUSTOM_ENUM = [
|
|
10
|
-
# TODO: Write general description for VALUE1
|
|
11
|
-
VALUE1 = 'VALUE1'.freeze,
|
|
12
|
-
|
|
13
|
-
# TODO: Write general description for VALUE2
|
|
14
|
-
VALUE2 = 'VALUE2'.freeze,
|
|
15
|
-
|
|
16
|
-
# TODO: Write general description for VALUE3
|
|
17
|
-
VALUE3 = 'VALUE3'.freeze
|
|
18
|
-
].freeze
|
|
19
|
-
|
|
20
|
-
def self.validate(value)
|
|
21
|
-
return false if value.nil?
|
|
22
|
-
|
|
23
|
-
CUSTOM_ENUM.include?(value)
|
|
24
|
-
end
|
|
25
|
-
|
|
26
|
-
def self.from_value(value, default_value = VALUE1)
|
|
27
|
-
return default_value if value.nil?
|
|
28
|
-
|
|
29
|
-
str = value.to_s.strip
|
|
30
|
-
|
|
31
|
-
case str.downcase
|
|
32
|
-
when 'value1' then VALUE1
|
|
33
|
-
when 'value2' then VALUE2
|
|
34
|
-
when 'value3' then VALUE3
|
|
35
|
-
else
|
|
36
|
-
default_value
|
|
37
|
-
end
|
|
38
|
-
end
|
|
39
|
-
end
|
|
40
|
-
end
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
# cypress_test_api
|
|
2
|
-
#
|
|
3
|
-
# This file was automatically generated by APIMATIC v3.0
|
|
4
|
-
# ( https://www.apimatic.io ).
|
|
5
|
-
|
|
6
|
-
module CypressTestApi
|
|
7
|
-
# Deer Model.
|
|
8
|
-
class Deer < BaseModel
|
|
9
|
-
SKIP = Object.new
|
|
10
|
-
private_constant :SKIP
|
|
11
|
-
|
|
12
|
-
# TODO: Write general description for this method
|
|
13
|
-
# @return [String]
|
|
14
|
-
attr_accessor :name
|
|
15
|
-
|
|
16
|
-
# TODO: Write general description for this method
|
|
17
|
-
# @return [String]
|
|
18
|
-
attr_accessor :type
|
|
19
|
-
|
|
20
|
-
# A mapping from model property names to API property names.
|
|
21
|
-
def self.names
|
|
22
|
-
@_hash = {} if @_hash.nil?
|
|
23
|
-
@_hash['name'] = 'name'
|
|
24
|
-
@_hash['type'] = 'type'
|
|
25
|
-
@_hash
|
|
26
|
-
end
|
|
27
|
-
|
|
28
|
-
# An array for optional fields
|
|
29
|
-
def self.optionals
|
|
30
|
-
[]
|
|
31
|
-
end
|
|
32
|
-
|
|
33
|
-
# An array for nullable fields
|
|
34
|
-
def self.nullables
|
|
35
|
-
[]
|
|
36
|
-
end
|
|
37
|
-
|
|
38
|
-
def initialize(name = nil, type = nil)
|
|
39
|
-
@name = name
|
|
40
|
-
@type = type
|
|
41
|
-
end
|
|
42
|
-
|
|
43
|
-
# Creates an instance of the object from a hash.
|
|
44
|
-
def self.from_hash(hash)
|
|
45
|
-
return nil unless hash
|
|
46
|
-
|
|
47
|
-
# Extract variables from the hash.
|
|
48
|
-
name = hash.key?('name') ? hash['name'] : nil
|
|
49
|
-
type = hash.key?('type') ? hash['type'] : nil
|
|
50
|
-
|
|
51
|
-
# Create object from extracted values.
|
|
52
|
-
Deer.new(name,
|
|
53
|
-
type)
|
|
54
|
-
end
|
|
55
|
-
|
|
56
|
-
# Provides a human-readable string representation of the object.
|
|
57
|
-
def to_s
|
|
58
|
-
class_name = self.class.name.split('::').last
|
|
59
|
-
"<#{class_name} name: #{@name}, type: #{@type}>"
|
|
60
|
-
end
|
|
61
|
-
|
|
62
|
-
# Provides a debugging-friendly string with detailed object information.
|
|
63
|
-
def inspect
|
|
64
|
-
class_name = self.class.name.split('::').last
|
|
65
|
-
"<#{class_name} name: #{@name.inspect}, type: #{@type.inspect}>"
|
|
66
|
-
end
|
|
67
|
-
end
|
|
68
|
-
end
|