wire4_client 1.1.2 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/wire4_client/api/depositantes_api.rb +71 -0
- data/lib/wire4_client/models/depositant_count_response.rb +185 -0
- data/lib/wire4_client/version.rb +1 -1
- data/lib/wire4_client.rb +1 -0
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2391c9809902d50938542543d60de296f6612376334bb74efdc6a8ec2881e04d
|
4
|
+
data.tar.gz: 29afdb16210989b6c1921ff422c44e3b62ef8e807431477b43dd984bc866bd79
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 90085f5760a5e9c31fe590f3265a71b92f002965397603191ceda0c4ec11f2c6a1faf0e10260287e1524a41fde74c9f639a847526bd6b9d451b49b69551ae37c
|
7
|
+
data.tar.gz: 0e63164fab89d16c4daf546bbc7d82b5f746a6c64f7de076553e672c79642f96a35bd16e99b661d564ea6587b41992e3bd50a8156e2cf477f4fc2620cc558fa3
|
data/README.md
CHANGED
@@ -7,7 +7,7 @@ Referencia de la API de Wire4
|
|
7
7
|
This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
|
8
8
|
|
9
9
|
- API version: 1.0.0
|
10
|
-
- Package version: 1.
|
10
|
+
- Package version: 1.1.2
|
11
11
|
- Build package: io.swagger.codegen.languages.RubyClientCodegen
|
12
12
|
|
13
13
|
## Installation
|
@@ -19,6 +19,77 @@ module Wire4Client
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
+
# Consulta cuantas cuentas de depositantes existen
|
23
|
+
# Obtiene la cantidad el total de depositantes asociados al contrato relacionado a la suscripción.
|
24
|
+
# @param authorization Header para token
|
25
|
+
# @param subscription Es el identificador de la suscripción a esta API.
|
26
|
+
# @param [Hash] opts the optional parameters
|
27
|
+
# @return [DepositantCountResponse]
|
28
|
+
def get_depositants_totals_using_get(authorization, subscription, opts = {})
|
29
|
+
data, _status_code, _headers = get_depositants_totals_using_get_with_http_info(authorization, subscription, opts)
|
30
|
+
data
|
31
|
+
end
|
32
|
+
|
33
|
+
# Consulta cuantas cuentas de depositantes existen
|
34
|
+
# Obtiene la cantidad el total de depositantes asociados al contrato relacionado a la suscripción.
|
35
|
+
# @param authorization Header para token
|
36
|
+
# @param subscription Es el identificador de la suscripción a esta API.
|
37
|
+
# @param [Hash] opts the optional parameters
|
38
|
+
# @return [Array<(DepositantCountResponse, Fixnum, Hash)>] DepositantCountResponse data, response status code and response headers
|
39
|
+
def get_depositants_totals_using_get_with_http_info(authorization, subscription, opts = {})
|
40
|
+
if @api_client.config.debugging
|
41
|
+
@api_client.config.logger.debug 'Calling API: DepositantesApi.get_depositants_totals_using_get ...'
|
42
|
+
end
|
43
|
+
# verify the required parameter 'authorization' is set
|
44
|
+
if @api_client.config.client_side_validation && authorization.nil?
|
45
|
+
fail ArgumentError, "Missing the required parameter 'authorization' when calling DepositantesApi.get_depositants_totals_using_get"
|
46
|
+
end
|
47
|
+
# verify the required parameter 'subscription' is set
|
48
|
+
if @api_client.config.client_side_validation && subscription.nil?
|
49
|
+
fail ArgumentError, "Missing the required parameter 'subscription' when calling DepositantesApi.get_depositants_totals_using_get"
|
50
|
+
end
|
51
|
+
if @api_client.config.client_side_validation && subscription.to_s.length > 36
|
52
|
+
fail ArgumentError, 'invalid value for "subscription" when calling DepositantesApi.get_depositants_totals_using_get, the character length must be smaller than or equal to 36.'
|
53
|
+
end
|
54
|
+
|
55
|
+
if @api_client.config.client_side_validation && subscription.to_s.length < 36
|
56
|
+
fail ArgumentError, 'invalid value for "subscription" when calling DepositantesApi.get_depositants_totals_using_get, the character length must be great than or equal to 36.'
|
57
|
+
end
|
58
|
+
|
59
|
+
if @api_client.config.client_side_validation && subscription !~ Regexp.new(/[A-Fa-f0-9]{8}-[A-Fa-f0-9]{4}-[34][A-Fa-f0-9]{3}-[89ab][A-Fa-f0-9]{3}-[A-Fa-f0-9]{12}$/)
|
60
|
+
fail ArgumentError, "invalid value for 'subscription' when calling DepositantesApi.get_depositants_totals_using_get, must conform to the pattern /[A-Fa-f0-9]{8}-[A-Fa-f0-9]{4}-[34][A-Fa-f0-9]{3}-[89ab][A-Fa-f0-9]{3}-[A-Fa-f0-9]{12}$/."
|
61
|
+
end
|
62
|
+
|
63
|
+
# resource path
|
64
|
+
local_var_path = '/subscriptions/{subscription}/depositants/count'.sub('{' + 'subscription' + '}', subscription.to_s)
|
65
|
+
|
66
|
+
# query parameters
|
67
|
+
query_params = {}
|
68
|
+
|
69
|
+
# header parameters
|
70
|
+
header_params = {}
|
71
|
+
# HTTP header 'Accept' (if needed)
|
72
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
73
|
+
header_params[:'Authorization'] = authorization
|
74
|
+
|
75
|
+
# form parameters
|
76
|
+
form_params = {}
|
77
|
+
|
78
|
+
# http body (model)
|
79
|
+
post_body = nil
|
80
|
+
auth_names = []
|
81
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
82
|
+
:header_params => header_params,
|
83
|
+
:query_params => query_params,
|
84
|
+
:form_params => form_params,
|
85
|
+
:body => post_body,
|
86
|
+
:auth_names => auth_names,
|
87
|
+
:return_type => 'DepositantCountResponse')
|
88
|
+
if @api_client.config.debugging
|
89
|
+
@api_client.config.logger.debug "API called: DepositantesApi#get_depositants_totals_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
90
|
+
end
|
91
|
+
return data, status_code, headers
|
92
|
+
end
|
22
93
|
# Consulta de cuentas de depositantes
|
23
94
|
# Obtiene una lista de depositantes asociados al contrato relacionado a la suscripción.
|
24
95
|
# @param authorization Header para token
|
@@ -0,0 +1,185 @@
|
|
1
|
+
=begin
|
2
|
+
#Wire4RestAPI
|
3
|
+
|
4
|
+
#Referencia de la API de Wire4
|
5
|
+
|
6
|
+
OpenAPI spec version: 1.0.0
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.10
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module Wire4Client
|
16
|
+
# Objeto que contiene la cantidad de depositantes
|
17
|
+
class DepositantCountResponse
|
18
|
+
# Total de depositantes.
|
19
|
+
attr_accessor :total
|
20
|
+
|
21
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
22
|
+
def self.attribute_map
|
23
|
+
{
|
24
|
+
:'total' => :'total'
|
25
|
+
}
|
26
|
+
end
|
27
|
+
|
28
|
+
# Attribute type mapping.
|
29
|
+
def self.swagger_types
|
30
|
+
{
|
31
|
+
:'total' => :'Integer'
|
32
|
+
}
|
33
|
+
end
|
34
|
+
|
35
|
+
# Initializes the object
|
36
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
37
|
+
def initialize(attributes = {})
|
38
|
+
return unless attributes.is_a?(Hash)
|
39
|
+
|
40
|
+
# convert string to symbol for hash key
|
41
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
42
|
+
|
43
|
+
if attributes.has_key?(:'total')
|
44
|
+
self.total = attributes[:'total']
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
49
|
+
# @return Array for valid properties with the reasons
|
50
|
+
def list_invalid_properties
|
51
|
+
invalid_properties = Array.new
|
52
|
+
invalid_properties
|
53
|
+
end
|
54
|
+
|
55
|
+
# Check to see if the all the properties in the model are valid
|
56
|
+
# @return true if the model is valid
|
57
|
+
def valid?
|
58
|
+
true
|
59
|
+
end
|
60
|
+
|
61
|
+
# Checks equality by comparing each attribute.
|
62
|
+
# @param [Object] Object to be compared
|
63
|
+
def ==(o)
|
64
|
+
return true if self.equal?(o)
|
65
|
+
self.class == o.class &&
|
66
|
+
total == o.total
|
67
|
+
end
|
68
|
+
|
69
|
+
# @see the `==` method
|
70
|
+
# @param [Object] Object to be compared
|
71
|
+
def eql?(o)
|
72
|
+
self == o
|
73
|
+
end
|
74
|
+
|
75
|
+
# Calculates hash code according to all attributes.
|
76
|
+
# @return [Fixnum] Hash code
|
77
|
+
def hash
|
78
|
+
[total].hash
|
79
|
+
end
|
80
|
+
|
81
|
+
# Builds the object from hash
|
82
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
83
|
+
# @return [Object] Returns the model itself
|
84
|
+
def build_from_hash(attributes)
|
85
|
+
return nil unless attributes.is_a?(Hash)
|
86
|
+
self.class.swagger_types.each_pair do |key, type|
|
87
|
+
if type =~ /\AArray<(.*)>/i
|
88
|
+
# check to ensure the input is an array given that the the attribute
|
89
|
+
# is documented as an array but the input is not
|
90
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
91
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
92
|
+
end
|
93
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
94
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
95
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
96
|
+
end
|
97
|
+
|
98
|
+
self
|
99
|
+
end
|
100
|
+
|
101
|
+
# Deserializes the data based on type
|
102
|
+
# @param string type Data type
|
103
|
+
# @param string value Value to be deserialized
|
104
|
+
# @return [Object] Deserialized data
|
105
|
+
def _deserialize(type, value)
|
106
|
+
case type.to_sym
|
107
|
+
when :DateTime
|
108
|
+
DateTime.parse(value)
|
109
|
+
when :Date
|
110
|
+
Date.parse(value)
|
111
|
+
when :String
|
112
|
+
value.to_s
|
113
|
+
when :Integer
|
114
|
+
value.to_i
|
115
|
+
when :Float
|
116
|
+
value.to_f
|
117
|
+
when :BOOLEAN
|
118
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
119
|
+
true
|
120
|
+
else
|
121
|
+
false
|
122
|
+
end
|
123
|
+
when :Object
|
124
|
+
# generic object (usually a Hash), return directly
|
125
|
+
value
|
126
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
127
|
+
inner_type = Regexp.last_match[:inner_type]
|
128
|
+
value.map { |v| _deserialize(inner_type, v) }
|
129
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
130
|
+
k_type = Regexp.last_match[:k_type]
|
131
|
+
v_type = Regexp.last_match[:v_type]
|
132
|
+
{}.tap do |hash|
|
133
|
+
value.each do |k, v|
|
134
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
135
|
+
end
|
136
|
+
end
|
137
|
+
else # model
|
138
|
+
temp_model = Wire4Client.const_get(type).new
|
139
|
+
temp_model.build_from_hash(value)
|
140
|
+
end
|
141
|
+
end
|
142
|
+
|
143
|
+
# Returns the string representation of the object
|
144
|
+
# @return [String] String presentation of the object
|
145
|
+
def to_s
|
146
|
+
to_hash.to_s
|
147
|
+
end
|
148
|
+
|
149
|
+
# to_body is an alias to to_hash (backward compatibility)
|
150
|
+
# @return [Hash] Returns the object in the form of hash
|
151
|
+
def to_body
|
152
|
+
to_hash
|
153
|
+
end
|
154
|
+
|
155
|
+
# Returns the object in the form of hash
|
156
|
+
# @return [Hash] Returns the object in the form of hash
|
157
|
+
def to_hash
|
158
|
+
hash = {}
|
159
|
+
self.class.attribute_map.each_pair do |attr, param|
|
160
|
+
value = self.send(attr)
|
161
|
+
next if value.nil?
|
162
|
+
hash[param] = _to_hash(value)
|
163
|
+
end
|
164
|
+
hash
|
165
|
+
end
|
166
|
+
|
167
|
+
# Outputs non-array value in the form of hash
|
168
|
+
# For object, use to_hash. Otherwise, just return the value
|
169
|
+
# @param [Object] value Any valid value
|
170
|
+
# @return [Hash] Returns the value in the form of hash
|
171
|
+
def _to_hash(value)
|
172
|
+
if value.is_a?(Array)
|
173
|
+
value.compact.map { |v| _to_hash(v) }
|
174
|
+
elsif value.is_a?(Hash)
|
175
|
+
{}.tap do |hash|
|
176
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
177
|
+
end
|
178
|
+
elsif value.respond_to? :to_hash
|
179
|
+
value.to_hash
|
180
|
+
else
|
181
|
+
value
|
182
|
+
end
|
183
|
+
end
|
184
|
+
end
|
185
|
+
end
|
data/lib/wire4_client/version.rb
CHANGED
data/lib/wire4_client.rb
CHANGED
@@ -52,6 +52,7 @@ require 'wire4_client/models/contract_detail_response'
|
|
52
52
|
require 'wire4_client/models/deposit'
|
53
53
|
require 'wire4_client/models/deposit_authorization_request'
|
54
54
|
require 'wire4_client/models/depositant'
|
55
|
+
require 'wire4_client/models/depositant_count_response'
|
55
56
|
require 'wire4_client/models/depositants_register'
|
56
57
|
require 'wire4_client/models/depositants_response'
|
57
58
|
require 'wire4_client/models/deposits_authorization_response'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wire4_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Wire4
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-11-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -373,6 +373,7 @@ files:
|
|
373
373
|
- lib/wire4_client/models/deposit.rb
|
374
374
|
- lib/wire4_client/models/deposit_authorization_request.rb
|
375
375
|
- lib/wire4_client/models/depositant.rb
|
376
|
+
- lib/wire4_client/models/depositant_count_response.rb
|
376
377
|
- lib/wire4_client/models/depositants_register.rb
|
377
378
|
- lib/wire4_client/models/depositants_response.rb
|
378
379
|
- lib/wire4_client/models/deposits_authorization_response.rb
|
@@ -571,7 +572,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
571
572
|
- !ruby/object:Gem::Version
|
572
573
|
version: '0'
|
573
574
|
requirements: []
|
574
|
-
rubygems_version: 3.0.
|
575
|
+
rubygems_version: 3.0.3
|
575
576
|
signing_key:
|
576
577
|
specification_version: 4
|
577
578
|
summary: Wire4RestAPI Ruby Gem
|