aure_ex 0.1.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.
@@ -0,0 +1,184 @@
1
+ =begin
2
+ #AureEX REST API
3
+
4
+ #API REST AureEX (camelCase inglês): depósitos USDT, saques USDT, conversões com origem USDT, webhooks e empresa. Auth: headers `X-Api-Key` e `X-Api-Secret`. Envelope: `{ \"success\": true, \"data\": ... }` / `{ \"success\": false, \"error\": { \"code\", \"message\", \"details\" } }`. Fonte para agentes: https://api.aure-ex.com/llms-full.txt
5
+
6
+ The version of the OpenAPI document: 0.1.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.23.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module AureEx
17
+ class WebhookCreate < ApiModelBase
18
+ attr_accessor :name
19
+
20
+ attr_accessor :url
21
+
22
+ attr_accessor :events
23
+
24
+ # Attribute mapping from ruby-style variable name to JSON key.
25
+ def self.attribute_map
26
+ {
27
+ :'name' => :'name',
28
+ :'url' => :'url',
29
+ :'events' => :'events'
30
+ }
31
+ end
32
+
33
+ # Returns attribute mapping this model knows about
34
+ def self.acceptable_attribute_map
35
+ attribute_map
36
+ end
37
+
38
+ # Returns all the JSON keys this model knows about
39
+ def self.acceptable_attributes
40
+ acceptable_attribute_map.values
41
+ end
42
+
43
+ # Attribute type mapping.
44
+ def self.openapi_types
45
+ {
46
+ :'name' => :'String',
47
+ :'url' => :'String',
48
+ :'events' => :'Array<String>'
49
+ }
50
+ end
51
+
52
+ # List of attributes with nullable: true
53
+ def self.openapi_nullable
54
+ Set.new([
55
+ ])
56
+ end
57
+
58
+ # Initializes the object
59
+ # @param [Hash] attributes Model attributes in the form of hash
60
+ def initialize(attributes = {})
61
+ if (!attributes.is_a?(Hash))
62
+ fail ArgumentError, "The input argument (attributes) must be a hash in `AureEx::WebhookCreate` initialize method"
63
+ end
64
+
65
+ # check to see if the attribute exists and convert string to symbol for hash key
66
+ acceptable_attribute_map = self.class.acceptable_attribute_map
67
+ attributes = attributes.each_with_object({}) { |(k, v), h|
68
+ if (!acceptable_attribute_map.key?(k.to_sym))
69
+ fail ArgumentError, "`#{k}` is not a valid attribute in `AureEx::WebhookCreate`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
70
+ end
71
+ h[k.to_sym] = v
72
+ }
73
+
74
+ if attributes.key?(:'name')
75
+ self.name = attributes[:'name']
76
+ end
77
+
78
+ if attributes.key?(:'url')
79
+ self.url = attributes[:'url']
80
+ else
81
+ self.url = nil
82
+ end
83
+
84
+ if attributes.key?(:'events')
85
+ if (value = attributes[:'events']).is_a?(Array)
86
+ self.events = value
87
+ end
88
+ end
89
+ end
90
+
91
+ # Show invalid properties with the reasons. Usually used together with valid?
92
+ # @return Array for valid properties with the reasons
93
+ def list_invalid_properties
94
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
95
+ invalid_properties = Array.new
96
+ if @url.nil?
97
+ invalid_properties.push('invalid value for "url", url cannot be nil.')
98
+ end
99
+
100
+ invalid_properties
101
+ end
102
+
103
+ # Check to see if the all the properties in the model are valid
104
+ # @return true if the model is valid
105
+ def valid?
106
+ warn '[DEPRECATED] the `valid?` method is obsolete'
107
+ return false if @url.nil?
108
+ true
109
+ end
110
+
111
+ # Custom attribute writer method with validation
112
+ # @param [Object] url Value to be assigned
113
+ def url=(url)
114
+ if url.nil?
115
+ fail ArgumentError, 'url cannot be nil'
116
+ end
117
+
118
+ @url = url
119
+ end
120
+
121
+ # Checks equality by comparing each attribute.
122
+ # @param [Object] Object to be compared
123
+ def ==(o)
124
+ return true if self.equal?(o)
125
+ self.class == o.class &&
126
+ name == o.name &&
127
+ url == o.url &&
128
+ events == o.events
129
+ end
130
+
131
+ # @see the `==` method
132
+ # @param [Object] Object to be compared
133
+ def eql?(o)
134
+ self == o
135
+ end
136
+
137
+ # Calculates hash code according to all attributes.
138
+ # @return [Integer] Hash code
139
+ def hash
140
+ [name, url, events].hash
141
+ end
142
+
143
+ # Builds the object from hash
144
+ # @param [Hash] attributes Model attributes in the form of hash
145
+ # @return [Object] Returns the model itself
146
+ def self.build_from_hash(attributes)
147
+ return nil unless attributes.is_a?(Hash)
148
+ attributes = attributes.transform_keys(&:to_sym)
149
+ transformed_hash = {}
150
+ openapi_types.each_pair do |key, type|
151
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
152
+ transformed_hash["#{key}"] = nil
153
+ elsif type =~ /\AArray<(.*)>/i
154
+ # check to ensure the input is an array given that the attribute
155
+ # is documented as an array but the input is not
156
+ if attributes[attribute_map[key]].is_a?(Array)
157
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
158
+ end
159
+ elsif !attributes[attribute_map[key]].nil?
160
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
161
+ end
162
+ end
163
+ new(transformed_hash)
164
+ end
165
+
166
+ # Returns the object in the form of hash
167
+ # @return [Hash] Returns the object in the form of hash
168
+ def to_hash
169
+ hash = {}
170
+ self.class.attribute_map.each_pair do |attr, param|
171
+ value = self.send(attr)
172
+ if value.nil?
173
+ is_nullable = self.class.openapi_nullable.include?(attr)
174
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
175
+ end
176
+
177
+ hash[param] = _to_hash(value)
178
+ end
179
+ hash
180
+ end
181
+
182
+ end
183
+
184
+ end
@@ -0,0 +1,212 @@
1
+ =begin
2
+ #AureEX REST API
3
+
4
+ #API REST AureEX (camelCase inglês): depósitos USDT, saques USDT, conversões com origem USDT, webhooks e empresa. Auth: headers `X-Api-Key` e `X-Api-Secret`. Envelope: `{ \"success\": true, \"data\": ... }` / `{ \"success\": false, \"error\": { \"code\", \"message\", \"details\" } }`. Fonte para agentes: https://api.aure-ex.com/llms-full.txt
5
+
6
+ The version of the OpenAPI document: 0.1.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.23.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module AureEx
17
+ class WithdrawalCreate < ApiModelBase
18
+ attr_accessor :amount
19
+
20
+ attr_accessor :network
21
+
22
+ # Endereço da carteira externa
23
+ attr_accessor :address
24
+
25
+ attr_accessor :reference
26
+
27
+ attr_accessor :callback_url
28
+
29
+ attr_accessor :metadata
30
+
31
+ # Attribute mapping from ruby-style variable name to JSON key.
32
+ def self.attribute_map
33
+ {
34
+ :'amount' => :'amount',
35
+ :'network' => :'network',
36
+ :'address' => :'address',
37
+ :'reference' => :'reference',
38
+ :'callback_url' => :'callbackUrl',
39
+ :'metadata' => :'metadata'
40
+ }
41
+ end
42
+
43
+ # Returns attribute mapping this model knows about
44
+ def self.acceptable_attribute_map
45
+ attribute_map
46
+ end
47
+
48
+ # Returns all the JSON keys this model knows about
49
+ def self.acceptable_attributes
50
+ acceptable_attribute_map.values
51
+ end
52
+
53
+ # Attribute type mapping.
54
+ def self.openapi_types
55
+ {
56
+ :'amount' => :'Integer',
57
+ :'network' => :'String',
58
+ :'address' => :'String',
59
+ :'reference' => :'String',
60
+ :'callback_url' => :'String',
61
+ :'metadata' => :'Hash<String, Object>'
62
+ }
63
+ end
64
+
65
+ # List of attributes with nullable: true
66
+ def self.openapi_nullable
67
+ Set.new([
68
+ ])
69
+ end
70
+
71
+ # Initializes the object
72
+ # @param [Hash] attributes Model attributes in the form of hash
73
+ def initialize(attributes = {})
74
+ if (!attributes.is_a?(Hash))
75
+ fail ArgumentError, "The input argument (attributes) must be a hash in `AureEx::WithdrawalCreate` initialize method"
76
+ end
77
+
78
+ # check to see if the attribute exists and convert string to symbol for hash key
79
+ acceptable_attribute_map = self.class.acceptable_attribute_map
80
+ attributes = attributes.each_with_object({}) { |(k, v), h|
81
+ if (!acceptable_attribute_map.key?(k.to_sym))
82
+ fail ArgumentError, "`#{k}` is not a valid attribute in `AureEx::WithdrawalCreate`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
83
+ end
84
+ h[k.to_sym] = v
85
+ }
86
+
87
+ if attributes.key?(:'amount')
88
+ self.amount = attributes[:'amount']
89
+ else
90
+ self.amount = nil
91
+ end
92
+
93
+ if attributes.key?(:'network')
94
+ self.network = attributes[:'network']
95
+ end
96
+
97
+ if attributes.key?(:'address')
98
+ self.address = attributes[:'address']
99
+ end
100
+
101
+ if attributes.key?(:'reference')
102
+ self.reference = attributes[:'reference']
103
+ end
104
+
105
+ if attributes.key?(:'callback_url')
106
+ self.callback_url = attributes[:'callback_url']
107
+ end
108
+
109
+ if attributes.key?(:'metadata')
110
+ if (value = attributes[:'metadata']).is_a?(Hash)
111
+ self.metadata = value
112
+ end
113
+ end
114
+ end
115
+
116
+ # Show invalid properties with the reasons. Usually used together with valid?
117
+ # @return Array for valid properties with the reasons
118
+ def list_invalid_properties
119
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
120
+ invalid_properties = Array.new
121
+ if @amount.nil?
122
+ invalid_properties.push('invalid value for "amount", amount cannot be nil.')
123
+ end
124
+
125
+ invalid_properties
126
+ end
127
+
128
+ # Check to see if the all the properties in the model are valid
129
+ # @return true if the model is valid
130
+ def valid?
131
+ warn '[DEPRECATED] the `valid?` method is obsolete'
132
+ return false if @amount.nil?
133
+ true
134
+ end
135
+
136
+ # Custom attribute writer method with validation
137
+ # @param [Object] amount Value to be assigned
138
+ def amount=(amount)
139
+ if amount.nil?
140
+ fail ArgumentError, 'amount cannot be nil'
141
+ end
142
+
143
+ @amount = amount
144
+ end
145
+
146
+ # Checks equality by comparing each attribute.
147
+ # @param [Object] Object to be compared
148
+ def ==(o)
149
+ return true if self.equal?(o)
150
+ self.class == o.class &&
151
+ amount == o.amount &&
152
+ network == o.network &&
153
+ address == o.address &&
154
+ reference == o.reference &&
155
+ callback_url == o.callback_url &&
156
+ metadata == o.metadata
157
+ end
158
+
159
+ # @see the `==` method
160
+ # @param [Object] Object to be compared
161
+ def eql?(o)
162
+ self == o
163
+ end
164
+
165
+ # Calculates hash code according to all attributes.
166
+ # @return [Integer] Hash code
167
+ def hash
168
+ [amount, network, address, reference, callback_url, metadata].hash
169
+ end
170
+
171
+ # Builds the object from hash
172
+ # @param [Hash] attributes Model attributes in the form of hash
173
+ # @return [Object] Returns the model itself
174
+ def self.build_from_hash(attributes)
175
+ return nil unless attributes.is_a?(Hash)
176
+ attributes = attributes.transform_keys(&:to_sym)
177
+ transformed_hash = {}
178
+ openapi_types.each_pair do |key, type|
179
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
180
+ transformed_hash["#{key}"] = nil
181
+ elsif type =~ /\AArray<(.*)>/i
182
+ # check to ensure the input is an array given that the attribute
183
+ # is documented as an array but the input is not
184
+ if attributes[attribute_map[key]].is_a?(Array)
185
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
186
+ end
187
+ elsif !attributes[attribute_map[key]].nil?
188
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
189
+ end
190
+ end
191
+ new(transformed_hash)
192
+ end
193
+
194
+ # Returns the object in the form of hash
195
+ # @return [Hash] Returns the object in the form of hash
196
+ def to_hash
197
+ hash = {}
198
+ self.class.attribute_map.each_pair do |attr, param|
199
+ value = self.send(attr)
200
+ if value.nil?
201
+ is_nullable = self.class.openapi_nullable.include?(attr)
202
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
203
+ end
204
+
205
+ hash[param] = _to_hash(value)
206
+ end
207
+ hash
208
+ end
209
+
210
+ end
211
+
212
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module AureEx
4
+ VERSION = '0.1.0'
5
+ end
data/lib/aure_ex.rb ADDED
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ # SDK oficial da API AureEX para Ruby.
4
+ require_relative 'aure_ex/version'
5
+ require_relative 'aure_ex/client'
6
+
7
+ module AureEx
8
+ end
metadata ADDED
@@ -0,0 +1,69 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: aure_ex
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - AureEX
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2026-07-15 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: SDK oficial da API AureEX para Ruby (tipado via OpenAPI)
14
+ email:
15
+ - dev@aure-ex.com
16
+ executables: []
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - LICENSE
21
+ - README.md
22
+ - lib/aure_ex.rb
23
+ - lib/aure_ex/client.rb
24
+ - lib/aure_ex/generated/api/company_api.rb
25
+ - lib/aure_ex/generated/api/conversions_api.rb
26
+ - lib/aure_ex/generated/api/deposits_api.rb
27
+ - lib/aure_ex/generated/api/webhooks_api.rb
28
+ - lib/aure_ex/generated/api/withdrawals_api.rb
29
+ - lib/aure_ex/generated/api_client.rb
30
+ - lib/aure_ex/generated/api_error.rb
31
+ - lib/aure_ex/generated/api_model_base.rb
32
+ - lib/aure_ex/generated/configuration.rb
33
+ - lib/aure_ex/generated/models/conversion_create.rb
34
+ - lib/aure_ex/generated/models/customer_input.rb
35
+ - lib/aure_ex/generated/models/customer_input_document.rb
36
+ - lib/aure_ex/generated/models/deposit_create.rb
37
+ - lib/aure_ex/generated/models/error_body.rb
38
+ - lib/aure_ex/generated/models/error_body_error.rb
39
+ - lib/aure_ex/generated/models/success_envelope.rb
40
+ - lib/aure_ex/generated/models/webhook_create.rb
41
+ - lib/aure_ex/generated/models/withdrawal_create.rb
42
+ - lib/aure_ex/version.rb
43
+ homepage: https://api.aure-ex.com/docs/sdks
44
+ licenses:
45
+ - MIT
46
+ metadata:
47
+ homepage_uri: https://api.aure-ex.com/docs/sdks
48
+ source_code_uri: https://github.com/grupojrx/aure-ex-ruby
49
+ documentation_uri: https://api.aure-ex.com/docs
50
+ post_install_message:
51
+ rdoc_options: []
52
+ require_paths:
53
+ - lib
54
+ required_ruby_version: !ruby/object:Gem::Requirement
55
+ requirements:
56
+ - - ">="
57
+ - !ruby/object:Gem::Version
58
+ version: 3.1.0
59
+ required_rubygems_version: !ruby/object:Gem::Requirement
60
+ requirements:
61
+ - - ">="
62
+ - !ruby/object:Gem::Version
63
+ version: '0'
64
+ requirements: []
65
+ rubygems_version: 3.5.22
66
+ signing_key:
67
+ specification_version: 4
68
+ summary: SDK oficial da API AureEX para Ruby
69
+ test_files: []