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
@@ -1,115 +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
- # AuditLogEvent Model.
8
- class AuditLogEvent < BaseModel
9
- SKIP = Object.new
10
- private_constant :SKIP
11
-
12
- # TODO: Write general description for this method
13
- # @return [EventType3]
14
- attr_accessor :event_type
15
-
16
- # TODO: Write general description for this method
17
- # @return [String]
18
- attr_accessor :actor
19
-
20
- # TODO: Write general description for this method
21
- # @return [String]
22
- attr_accessor :action
23
-
24
- # TODO: Write general description for this method
25
- # @return [Object]
26
- attr_accessor :context
27
-
28
- # A mapping from model property names to API property names.
29
- def self.names
30
- @_hash = {} if @_hash.nil?
31
- @_hash['event_type'] = 'eventType'
32
- @_hash['actor'] = 'actor'
33
- @_hash['action'] = 'action'
34
- @_hash['context'] = 'context'
35
- @_hash
36
- end
37
-
38
- # An array for optional fields
39
- def self.optionals
40
- %w[
41
- event_type
42
- actor
43
- action
44
- context
45
- ]
46
- end
47
-
48
- # An array for nullable fields
49
- def self.nullables
50
- []
51
- end
52
-
53
- def initialize(event_type: SKIP, actor: SKIP, action: SKIP, context: SKIP,
54
- additional_properties: nil)
55
- # Add additional model properties to the instance
56
- additional_properties = {} if additional_properties.nil?
57
-
58
- @event_type = event_type unless event_type == SKIP
59
- @actor = actor unless actor == SKIP
60
- @action = action unless action == SKIP
61
- @context = context unless context == SKIP
62
- @additional_properties = additional_properties
63
- end
64
-
65
- # Creates an instance of the object from a hash.
66
- def self.from_hash(hash)
67
- return nil unless hash
68
-
69
- # Extract variables from the hash.
70
- event_type = hash.key?('eventType') ? hash['eventType'] : SKIP
71
- actor = hash.key?('actor') ? hash['actor'] : SKIP
72
- action = hash.key?('action') ? hash['action'] : SKIP
73
- context = hash.key?('context') ? hash['context'] : SKIP
74
-
75
- # Create a new hash for additional properties, removing known properties.
76
- new_hash = hash.reject { |k, _| names.value?(k) }
77
-
78
- additional_properties = APIHelper.get_additional_properties(
79
- new_hash, proc { |value| value }
80
- )
81
-
82
- # Create object from extracted values.
83
- AuditLogEvent.new(event_type: event_type,
84
- actor: actor,
85
- action: action,
86
- context: context,
87
- additional_properties: additional_properties)
88
- end
89
-
90
- # Validates an instance of the object from a given value.
91
- # @param [AuditLogEvent | Hash] The value against the validation is performed.
92
- def self.validate(value)
93
- return true if value.instance_of? self
94
-
95
- return false unless value.instance_of? Hash
96
-
97
- true
98
- end
99
-
100
- # Provides a human-readable string representation of the object.
101
- def to_s
102
- class_name = self.class.name.split('::').last
103
- "<#{class_name} event_type: #{@event_type}, actor: #{@actor}, action: #{@action}, context:"\
104
- " #{@context}, additional_properties: #{@additional_properties}>"
105
- end
106
-
107
- # Provides a debugging-friendly string with detailed object information.
108
- def inspect
109
- class_name = self.class.name.split('::').last
110
- "<#{class_name} event_type: #{@event_type.inspect}, actor: #{@actor.inspect}, action:"\
111
- " #{@action.inspect}, context: #{@context.inspect}, additional_properties:"\
112
- " #{@additional_properties}>"
113
- end
114
- end
115
- end
@@ -1,131 +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
- # CreateOrderRequest Model.
8
- class CreateOrderRequest < BaseModel
9
- SKIP = Object.new
10
- private_constant :SKIP
11
-
12
- # Unique identifier for the customer
13
- # @return [String]
14
- attr_accessor :customer_id
15
-
16
- # Unique identifier for the customer
17
- # @return [Array[OrderItem]]
18
- attr_accessor :items
19
-
20
- # URL to receive callback notifications
21
- # @return [String]
22
- attr_accessor :callback_url
23
-
24
- # Binary file upload
25
- # @return [Binary]
26
- attr_accessor :document
27
-
28
- # Additional order metadata
29
- # @return [Object]
30
- attr_accessor :metadata
31
-
32
- # Additional order metadata
33
- # @return [Hash[String, String]]
34
- attr_accessor :attributes
35
-
36
- # A mapping from model property names to API property names.
37
- def self.names
38
- @_hash = {} if @_hash.nil?
39
- @_hash['customer_id'] = 'customerId'
40
- @_hash['items'] = 'items'
41
- @_hash['callback_url'] = 'callbackUrl'
42
- @_hash['document'] = 'document'
43
- @_hash['metadata'] = 'metadata'
44
- @_hash['attributes'] = 'attributes'
45
- @_hash
46
- end
47
-
48
- # An array for optional fields
49
- def self.optionals
50
- %w[
51
- document
52
- metadata
53
- attributes
54
- ]
55
- end
56
-
57
- # An array for nullable fields
58
- def self.nullables
59
- []
60
- end
61
-
62
- def initialize(customer_id:, items:, callback_url:, document: SKIP,
63
- metadata: SKIP, attributes: SKIP, additional_properties: nil)
64
- # Add additional model properties to the instance
65
- additional_properties = {} if additional_properties.nil?
66
-
67
- @customer_id = customer_id
68
- @items = items
69
- @callback_url = callback_url
70
- @document = document unless document == SKIP
71
- @metadata = metadata unless metadata == SKIP
72
- @attributes = attributes unless attributes == SKIP
73
- @additional_properties = additional_properties
74
- end
75
-
76
- # Creates an instance of the object from a hash.
77
- def self.from_hash(hash)
78
- return nil unless hash
79
-
80
- # Extract variables from the hash.
81
- customer_id = hash.key?('customerId') ? hash['customerId'] : nil
82
- # Parameter is an array, so we need to iterate through it
83
- items = nil
84
- unless hash['items'].nil?
85
- items = []
86
- hash['items'].each do |structure|
87
- items << (OrderItem.from_hash(structure) if structure)
88
- end
89
- end
90
-
91
- items = nil unless hash.key?('items')
92
- callback_url = hash.key?('callbackUrl') ? hash['callbackUrl'] : nil
93
- document = hash.key?('document') ? hash['document'] : SKIP
94
- metadata = hash.key?('metadata') ? hash['metadata'] : SKIP
95
- attributes = hash.key?('attributes') ? hash['attributes'] : SKIP
96
-
97
- # Create a new hash for additional properties, removing known properties.
98
- new_hash = hash.reject { |k, _| names.value?(k) }
99
-
100
- additional_properties = APIHelper.get_additional_properties(
101
- new_hash, proc { |value| value }
102
- )
103
-
104
- # Create object from extracted values.
105
- CreateOrderRequest.new(customer_id: customer_id,
106
- items: items,
107
- callback_url: callback_url,
108
- document: document,
109
- metadata: metadata,
110
- attributes: attributes,
111
- additional_properties: additional_properties)
112
- end
113
-
114
- # Provides a human-readable string representation of the object.
115
- def to_s
116
- class_name = self.class.name.split('::').last
117
- "<#{class_name} customer_id: #{@customer_id}, items: #{@items}, callback_url:"\
118
- " #{@callback_url}, document: #{@document}, metadata: #{@metadata}, attributes:"\
119
- " #{@attributes}, additional_properties: #{@additional_properties}>"
120
- end
121
-
122
- # Provides a debugging-friendly string with detailed object information.
123
- def inspect
124
- class_name = self.class.name.split('::').last
125
- "<#{class_name} customer_id: #{@customer_id.inspect}, items: #{@items.inspect},"\
126
- " callback_url: #{@callback_url.inspect}, document: #{@document.inspect}, metadata:"\
127
- " #{@metadata.inspect}, attributes: #{@attributes.inspect}, additional_properties:"\
128
- " #{@additional_properties}>"
129
- end
130
- end
131
- end
@@ -1,97 +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
- # EmailNotificationCallback Model.
8
- class EmailNotificationCallback < BaseModel
9
- SKIP = Object.new
10
- private_constant :SKIP
11
-
12
- # TODO: Write general description for this method
13
- # @return [String]
14
- attr_accessor :message_id
15
-
16
- # TODO: Write general description for this method
17
- # @return [String]
18
- attr_accessor :recipient_email
19
-
20
- # TODO: Write general description for this method
21
- # @return [Status1]
22
- attr_accessor :status
23
-
24
- # A mapping from model property names to API property names.
25
- def self.names
26
- @_hash = {} if @_hash.nil?
27
- @_hash['message_id'] = 'messageId'
28
- @_hash['recipient_email'] = 'recipientEmail'
29
- @_hash['status'] = 'status'
30
- @_hash
31
- end
32
-
33
- # An array for optional fields
34
- def self.optionals
35
- %w[
36
- message_id
37
- recipient_email
38
- status
39
- ]
40
- end
41
-
42
- # An array for nullable fields
43
- def self.nullables
44
- []
45
- end
46
-
47
- def initialize(message_id: SKIP, recipient_email: SKIP, status: SKIP,
48
- additional_properties: nil)
49
- # Add additional model properties to the instance
50
- additional_properties = {} if additional_properties.nil?
51
-
52
- @message_id = message_id unless message_id == SKIP
53
- @recipient_email = recipient_email unless recipient_email == SKIP
54
- @status = status unless status == SKIP
55
- @additional_properties = additional_properties
56
- end
57
-
58
- # Creates an instance of the object from a hash.
59
- def self.from_hash(hash)
60
- return nil unless hash
61
-
62
- # Extract variables from the hash.
63
- message_id = hash.key?('messageId') ? hash['messageId'] : SKIP
64
- recipient_email =
65
- hash.key?('recipientEmail') ? hash['recipientEmail'] : SKIP
66
- status = hash.key?('status') ? hash['status'] : SKIP
67
-
68
- # Create a new hash for additional properties, removing known properties.
69
- new_hash = hash.reject { |k, _| names.value?(k) }
70
-
71
- additional_properties = APIHelper.get_additional_properties(
72
- new_hash, proc { |value| value }
73
- )
74
-
75
- # Create object from extracted values.
76
- EmailNotificationCallback.new(message_id: message_id,
77
- recipient_email: recipient_email,
78
- status: status,
79
- additional_properties: additional_properties)
80
- end
81
-
82
- # Provides a human-readable string representation of the object.
83
- def to_s
84
- class_name = self.class.name.split('::').last
85
- "<#{class_name} message_id: #{@message_id}, recipient_email: #{@recipient_email}, status:"\
86
- " #{@status}, additional_properties: #{@additional_properties}>"
87
- end
88
-
89
- # Provides a debugging-friendly string with detailed object information.
90
- def inspect
91
- class_name = self.class.name.split('::').last
92
- "<#{class_name} message_id: #{@message_id.inspect}, recipient_email:"\
93
- " #{@recipient_email.inspect}, status: #{@status.inspect}, additional_properties:"\
94
- " #{@additional_properties}>"
95
- end
96
- end
97
- end
@@ -1,52 +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
- # Event.
8
- class Event
9
- EVENT = [
10
- # TODO: Write general description for ENUM_ORDERCREATED
11
- ENUM_ORDERCREATED = 'order.created'.freeze,
12
-
13
- # TODO: Write general description for ENUM_ORDERUPDATED
14
- ENUM_ORDERUPDATED = 'order.updated'.freeze,
15
-
16
- # TODO: Write general description for ENUM_ORDERCANCELLED
17
- ENUM_ORDERCANCELLED = 'order.cancelled'.freeze,
18
-
19
- # TODO: Write general description for ENUM_PAYMENTCOMPLETED
20
- ENUM_PAYMENTCOMPLETED = 'payment.completed'.freeze,
21
-
22
- # TODO: Write general description for ENUM_PAYMENTFAILED
23
- ENUM_PAYMENTFAILED = 'payment.failed'.freeze,
24
-
25
- # TODO: Write general description for ENUM_FULFILLMENTCOMPLETED
26
- ENUM_FULFILLMENTCOMPLETED = 'fulfillment.completed'.freeze
27
- ].freeze
28
-
29
- def self.validate(value)
30
- return false if value.nil?
31
-
32
- EVENT.include?(value)
33
- end
34
-
35
- def self.from_value(value, default_value = ENUM_ORDERCREATED)
36
- return default_value if value.nil?
37
-
38
- str = value.to_s.strip
39
-
40
- case str.downcase
41
- when 'enum_ordercreated' then ENUM_ORDERCREATED
42
- when 'enum_orderupdated' then ENUM_ORDERUPDATED
43
- when 'enum_ordercancelled' then ENUM_ORDERCANCELLED
44
- when 'enum_paymentcompleted' then ENUM_PAYMENTCOMPLETED
45
- when 'enum_paymentfailed' then ENUM_PAYMENTFAILED
46
- when 'enum_fulfillmentcompleted' then ENUM_FULFILLMENTCOMPLETED
47
- else
48
- default_value
49
- end
50
- end
51
- end
52
- end
@@ -1,26 +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
- # EventType.
8
- class EventType
9
- EVENT_TYPE = [
10
- # TODO: Write general description for ENUM_ORDERUPDATED
11
- ENUM_ORDERUPDATED = 'order.updated'.freeze
12
- ].freeze
13
-
14
- def self.validate(value)
15
- return false if value.nil?
16
-
17
- EVENT_TYPE.include?(value)
18
- end
19
-
20
- def self.from_value(value, default_value = ENUM_ORDERUPDATED)
21
- return default_value if value.nil?
22
-
23
- default_value
24
- end
25
- end
26
- end
@@ -1,26 +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
- # EventType1.
8
- class EventType1
9
- EVENT_TYPE1 = [
10
- # TODO: Write general description for ENUM_PAYMENTCOMPLETED
11
- ENUM_PAYMENTCOMPLETED = 'payment.completed'.freeze
12
- ].freeze
13
-
14
- def self.validate(value)
15
- return false if value.nil?
16
-
17
- EVENT_TYPE1.include?(value)
18
- end
19
-
20
- def self.from_value(value, default_value = ENUM_PAYMENTCOMPLETED)
21
- return default_value if value.nil?
22
-
23
- default_value
24
- end
25
- end
26
- end
@@ -1,26 +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
- # EventType2.
8
- class EventType2
9
- EVENT_TYPE2 = [
10
- # TODO: Write general description for ENUM_PRIMITIVEVARIANT
11
- ENUM_PRIMITIVEVARIANT = 'primitive.variant'.freeze
12
- ].freeze
13
-
14
- def self.validate(value)
15
- return false if value.nil?
16
-
17
- EVENT_TYPE2.include?(value)
18
- end
19
-
20
- def self.from_value(value, default_value = ENUM_PRIMITIVEVARIANT)
21
- return default_value if value.nil?
22
-
23
- default_value
24
- end
25
- end
26
- end
@@ -1,26 +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
- # EventType3.
8
- class EventType3
9
- EVENT_TYPE3 = [
10
- # TODO: Write general description for ENUM_AUDITLOG
11
- ENUM_AUDITLOG = 'audit.log'.freeze
12
- ].freeze
13
-
14
- def self.validate(value)
15
- return false if value.nil?
16
-
17
- EVENT_TYPE3.include?(value)
18
- end
19
-
20
- def self.from_value(value, default_value = ENUM_AUDITLOG)
21
- return default_value if value.nil?
22
-
23
- default_value
24
- end
25
- end
26
- end