fountain_partner_api_client 0.0.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 +7 -0
- data/Gemfile +9 -0
- data/README.md +128 -0
- data/Rakefile +10 -0
- data/docs/DefaultApi.md +385 -0
- data/docs/V1PartnersIdApplicantsApplicantIdDetailsPostRequest.md +18 -0
- data/docs/V1PartnersIdApplicantsApplicantIdDetailsPostRequestApplicant.md +18 -0
- data/docs/V1PartnersIdApplicantsApplicantIdDetailsPostRequestApplicantPartnerDetails.md +26 -0
- data/docs/V1PartnersIdApplicantsApplicantIdPut200Response.md +20 -0
- data/docs/V1PartnersIdApplicantsApplicantIdPutRequest.md +18 -0
- data/docs/V1PartnersIdApplicantsApplicantIdPutRequestApplicant.md +18 -0
- data/docs/V1PartnersIdApplicantsApplicantIdPutRequestApplicantLabelsInner.md +18 -0
- data/docs/V1PartnersIdApplicantsApplicantIdStatusPostRequest.md +18 -0
- data/docs/V1PartnersIdApplicantsApplicantIdStatusPostRequestApplicant.md +18 -0
- data/docs/V1PartnersIdApplicantsApplicantIdStatusPostRequestApplicantPartnerStatus.md +26 -0
- data/docs/V1PartnersIdGet200Response.md +18 -0
- data/docs/V1PartnersIdGet200Response1.md +18 -0
- data/docs/V1PartnersIdGet200Response1Data.md +22 -0
- data/docs/V1PartnersIdGet200Response1DataAttributes.md +42 -0
- data/docs/V1PartnersIdGet200ResponseData.md +22 -0
- data/docs/V1PartnersIdGet200ResponseDataAttributes.md +38 -0
- data/docs/V1PartnersIdGetRequest.md +18 -0
- data/docs/V1PartnersIdGetRequestPartner.md +38 -0
- data/fountain_partner_api_client.gemspec +38 -0
- data/git_push.sh +57 -0
- data/lib/fountain_partner_api_client/api/default_api.rb +379 -0
- data/lib/fountain_partner_api_client/api_client.rb +392 -0
- data/lib/fountain_partner_api_client/api_error.rb +57 -0
- data/lib/fountain_partner_api_client/configuration.rb +279 -0
- data/lib/fountain_partner_api_client/models/v1_partners_id_applicants_applicant_id_details_post_request.rb +219 -0
- data/lib/fountain_partner_api_client/models/v1_partners_id_applicants_applicant_id_details_post_request_applicant.rb +219 -0
- data/lib/fountain_partner_api_client/models/v1_partners_id_applicants_applicant_id_details_post_request_applicant_partner_details.rb +255 -0
- data/lib/fountain_partner_api_client/models/v1_partners_id_applicants_applicant_id_put200_response.rb +230 -0
- data/lib/fountain_partner_api_client/models/v1_partners_id_applicants_applicant_id_put_request.rb +219 -0
- data/lib/fountain_partner_api_client/models/v1_partners_id_applicants_applicant_id_put_request_applicant.rb +221 -0
- data/lib/fountain_partner_api_client/models/v1_partners_id_applicants_applicant_id_put_request_applicant_labels_inner.rb +219 -0
- data/lib/fountain_partner_api_client/models/v1_partners_id_applicants_applicant_id_status_post_request.rb +219 -0
- data/lib/fountain_partner_api_client/models/v1_partners_id_applicants_applicant_id_status_post_request_applicant.rb +219 -0
- data/lib/fountain_partner_api_client/models/v1_partners_id_applicants_applicant_id_status_post_request_applicant_partner_status.rb +255 -0
- data/lib/fountain_partner_api_client/models/v1_partners_id_get200_response.rb +219 -0
- data/lib/fountain_partner_api_client/models/v1_partners_id_get200_response1.rb +219 -0
- data/lib/fountain_partner_api_client/models/v1_partners_id_get200_response1_data.rb +237 -0
- data/lib/fountain_partner_api_client/models/v1_partners_id_get200_response1_data_attributes.rb +327 -0
- data/lib/fountain_partner_api_client/models/v1_partners_id_get200_response_data.rb +237 -0
- data/lib/fountain_partner_api_client/models/v1_partners_id_get200_response_data_attributes.rb +309 -0
- data/lib/fountain_partner_api_client/models/v1_partners_id_get_request.rb +219 -0
- data/lib/fountain_partner_api_client/models/v1_partners_id_get_request_partner.rb +309 -0
- data/lib/fountain_partner_api_client/version.rb +15 -0
- data/lib/fountain_partner_api_client.rb +58 -0
- data/lib/openapi_client/api/default_api.rb +379 -0
- data/lib/openapi_client/api_client.rb +392 -0
- data/lib/openapi_client/api_error.rb +57 -0
- data/lib/openapi_client/configuration.rb +279 -0
- data/lib/openapi_client/models/v1_partners_id_applicants_applicant_id_details_post_request.rb +219 -0
- data/lib/openapi_client/models/v1_partners_id_applicants_applicant_id_details_post_request_applicant.rb +219 -0
- data/lib/openapi_client/models/v1_partners_id_applicants_applicant_id_details_post_request_applicant_partner_details.rb +255 -0
- data/lib/openapi_client/models/v1_partners_id_applicants_applicant_id_put200_response.rb +230 -0
- data/lib/openapi_client/models/v1_partners_id_applicants_applicant_id_put_request.rb +219 -0
- data/lib/openapi_client/models/v1_partners_id_applicants_applicant_id_put_request_applicant.rb +221 -0
- data/lib/openapi_client/models/v1_partners_id_applicants_applicant_id_put_request_applicant_labels_inner.rb +219 -0
- data/lib/openapi_client/models/v1_partners_id_applicants_applicant_id_status_post_request.rb +219 -0
- data/lib/openapi_client/models/v1_partners_id_applicants_applicant_id_status_post_request_applicant.rb +219 -0
- data/lib/openapi_client/models/v1_partners_id_applicants_applicant_id_status_post_request_applicant_partner_status.rb +255 -0
- data/lib/openapi_client/models/v1_partners_id_get200_response.rb +219 -0
- data/lib/openapi_client/models/v1_partners_id_get200_response1.rb +219 -0
- data/lib/openapi_client/models/v1_partners_id_get200_response1_data.rb +237 -0
- data/lib/openapi_client/models/v1_partners_id_get200_response1_data_attributes.rb +327 -0
- data/lib/openapi_client/models/v1_partners_id_get200_response_data.rb +237 -0
- data/lib/openapi_client/models/v1_partners_id_get200_response_data_attributes.rb +309 -0
- data/lib/openapi_client/models/v1_partners_id_get_request.rb +219 -0
- data/lib/openapi_client/models/v1_partners_id_get_request_partner.rb +309 -0
- data/lib/openapi_client/version.rb +15 -0
- data/lib/openapi_client.rb +58 -0
- data/openapi_client.gemspec +38 -0
- data/spec/api/default_api_spec.rb +99 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/v1_partners_id_applicants_applicant_id_details_post_request_applicant_partner_details_spec.rb +58 -0
- data/spec/models/v1_partners_id_applicants_applicant_id_details_post_request_applicant_spec.rb +34 -0
- data/spec/models/v1_partners_id_applicants_applicant_id_details_post_request_spec.rb +34 -0
- data/spec/models/v1_partners_id_applicants_applicant_id_put200_response_spec.rb +40 -0
- data/spec/models/v1_partners_id_applicants_applicant_id_put_request_applicant_labels_inner_spec.rb +34 -0
- data/spec/models/v1_partners_id_applicants_applicant_id_put_request_applicant_spec.rb +34 -0
- data/spec/models/v1_partners_id_applicants_applicant_id_put_request_spec.rb +34 -0
- data/spec/models/v1_partners_id_applicants_applicant_id_status_post_request_applicant_partner_status_spec.rb +58 -0
- data/spec/models/v1_partners_id_applicants_applicant_id_status_post_request_applicant_spec.rb +34 -0
- data/spec/models/v1_partners_id_applicants_applicant_id_status_post_request_spec.rb +34 -0
- data/spec/models/v1_partners_id_get200_response1_data_attributes_spec.rb +106 -0
- data/spec/models/v1_partners_id_get200_response1_data_spec.rb +46 -0
- data/spec/models/v1_partners_id_get200_response1_spec.rb +34 -0
- data/spec/models/v1_partners_id_get200_response_data_attributes_spec.rb +94 -0
- data/spec/models/v1_partners_id_get200_response_data_spec.rb +46 -0
- data/spec/models/v1_partners_id_get200_response_spec.rb +34 -0
- data/spec/models/v1_partners_id_get_request_partner_spec.rb +94 -0
- data/spec/models/v1_partners_id_get_request_spec.rb +34 -0
- data/spec/spec_helper.rb +111 -0
- metadata +200 -0
@@ -0,0 +1,309 @@
|
|
1
|
+
=begin
|
2
|
+
#Fountain Partner Docs
|
3
|
+
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v1
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 6.2.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module OpenapiClient
|
17
|
+
class V1PartnersIdGetRequestPartner
|
18
|
+
attr_accessor :applicant_redirect_url
|
19
|
+
|
20
|
+
attr_accessor :applicant_webhook
|
21
|
+
|
22
|
+
attr_accessor :install_webhook
|
23
|
+
|
24
|
+
attr_accessor :label_keys
|
25
|
+
|
26
|
+
attr_accessor :partner_hmac_key
|
27
|
+
|
28
|
+
attr_accessor :settings_auth_header
|
29
|
+
|
30
|
+
attr_accessor :settings_auth_method
|
31
|
+
|
32
|
+
attr_accessor :settings_password
|
33
|
+
|
34
|
+
attr_accessor :settings_username
|
35
|
+
|
36
|
+
attr_accessor :settings_webhook
|
37
|
+
|
38
|
+
attr_accessor :uninstall_webhook
|
39
|
+
|
40
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
41
|
+
def self.attribute_map
|
42
|
+
{
|
43
|
+
:'applicant_redirect_url' => :'applicant_redirect_url',
|
44
|
+
:'applicant_webhook' => :'applicant_webhook',
|
45
|
+
:'install_webhook' => :'install_webhook',
|
46
|
+
:'label_keys' => :'label_keys',
|
47
|
+
:'partner_hmac_key' => :'partner_hmac_key',
|
48
|
+
:'settings_auth_header' => :'settings_auth_header',
|
49
|
+
:'settings_auth_method' => :'settings_auth_method',
|
50
|
+
:'settings_password' => :'settings_password',
|
51
|
+
:'settings_username' => :'settings_username',
|
52
|
+
:'settings_webhook' => :'settings_webhook',
|
53
|
+
:'uninstall_webhook' => :'uninstall_webhook'
|
54
|
+
}
|
55
|
+
end
|
56
|
+
|
57
|
+
# Returns all the JSON keys this model knows about
|
58
|
+
def self.acceptable_attributes
|
59
|
+
attribute_map.values
|
60
|
+
end
|
61
|
+
|
62
|
+
# Attribute type mapping.
|
63
|
+
def self.openapi_types
|
64
|
+
{
|
65
|
+
:'applicant_redirect_url' => :'String',
|
66
|
+
:'applicant_webhook' => :'String',
|
67
|
+
:'install_webhook' => :'String',
|
68
|
+
:'label_keys' => :'Array',
|
69
|
+
:'partner_hmac_key' => :'String',
|
70
|
+
:'settings_auth_header' => :'String',
|
71
|
+
:'settings_auth_method' => :'String',
|
72
|
+
:'settings_password' => :'String',
|
73
|
+
:'settings_username' => :'String',
|
74
|
+
:'settings_webhook' => :'String',
|
75
|
+
:'uninstall_webhook' => :'String'
|
76
|
+
}
|
77
|
+
end
|
78
|
+
|
79
|
+
# List of attributes with nullable: true
|
80
|
+
def self.openapi_nullable
|
81
|
+
Set.new([
|
82
|
+
])
|
83
|
+
end
|
84
|
+
|
85
|
+
# Initializes the object
|
86
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
87
|
+
def initialize(attributes = {})
|
88
|
+
if (!attributes.is_a?(Hash))
|
89
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `OpenapiClient::V1PartnersIdGetRequestPartner` initialize method"
|
90
|
+
end
|
91
|
+
|
92
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
93
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
94
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
95
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `OpenapiClient::V1PartnersIdGetRequestPartner`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
96
|
+
end
|
97
|
+
h[k.to_sym] = v
|
98
|
+
}
|
99
|
+
|
100
|
+
if attributes.key?(:'applicant_redirect_url')
|
101
|
+
self.applicant_redirect_url = attributes[:'applicant_redirect_url']
|
102
|
+
end
|
103
|
+
|
104
|
+
if attributes.key?(:'applicant_webhook')
|
105
|
+
self.applicant_webhook = attributes[:'applicant_webhook']
|
106
|
+
end
|
107
|
+
|
108
|
+
if attributes.key?(:'install_webhook')
|
109
|
+
self.install_webhook = attributes[:'install_webhook']
|
110
|
+
end
|
111
|
+
|
112
|
+
if attributes.key?(:'label_keys')
|
113
|
+
self.label_keys = attributes[:'label_keys']
|
114
|
+
end
|
115
|
+
|
116
|
+
if attributes.key?(:'partner_hmac_key')
|
117
|
+
self.partner_hmac_key = attributes[:'partner_hmac_key']
|
118
|
+
end
|
119
|
+
|
120
|
+
if attributes.key?(:'settings_auth_header')
|
121
|
+
self.settings_auth_header = attributes[:'settings_auth_header']
|
122
|
+
end
|
123
|
+
|
124
|
+
if attributes.key?(:'settings_auth_method')
|
125
|
+
self.settings_auth_method = attributes[:'settings_auth_method']
|
126
|
+
end
|
127
|
+
|
128
|
+
if attributes.key?(:'settings_password')
|
129
|
+
self.settings_password = attributes[:'settings_password']
|
130
|
+
end
|
131
|
+
|
132
|
+
if attributes.key?(:'settings_username')
|
133
|
+
self.settings_username = attributes[:'settings_username']
|
134
|
+
end
|
135
|
+
|
136
|
+
if attributes.key?(:'settings_webhook')
|
137
|
+
self.settings_webhook = attributes[:'settings_webhook']
|
138
|
+
end
|
139
|
+
|
140
|
+
if attributes.key?(:'uninstall_webhook')
|
141
|
+
self.uninstall_webhook = attributes[:'uninstall_webhook']
|
142
|
+
end
|
143
|
+
end
|
144
|
+
|
145
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
146
|
+
# @return Array for valid properties with the reasons
|
147
|
+
def list_invalid_properties
|
148
|
+
invalid_properties = Array.new
|
149
|
+
invalid_properties
|
150
|
+
end
|
151
|
+
|
152
|
+
# Check to see if the all the properties in the model are valid
|
153
|
+
# @return true if the model is valid
|
154
|
+
def valid?
|
155
|
+
true
|
156
|
+
end
|
157
|
+
|
158
|
+
# Checks equality by comparing each attribute.
|
159
|
+
# @param [Object] Object to be compared
|
160
|
+
def ==(o)
|
161
|
+
return true if self.equal?(o)
|
162
|
+
self.class == o.class &&
|
163
|
+
applicant_redirect_url == o.applicant_redirect_url &&
|
164
|
+
applicant_webhook == o.applicant_webhook &&
|
165
|
+
install_webhook == o.install_webhook &&
|
166
|
+
label_keys == o.label_keys &&
|
167
|
+
partner_hmac_key == o.partner_hmac_key &&
|
168
|
+
settings_auth_header == o.settings_auth_header &&
|
169
|
+
settings_auth_method == o.settings_auth_method &&
|
170
|
+
settings_password == o.settings_password &&
|
171
|
+
settings_username == o.settings_username &&
|
172
|
+
settings_webhook == o.settings_webhook &&
|
173
|
+
uninstall_webhook == o.uninstall_webhook
|
174
|
+
end
|
175
|
+
|
176
|
+
# @see the `==` method
|
177
|
+
# @param [Object] Object to be compared
|
178
|
+
def eql?(o)
|
179
|
+
self == o
|
180
|
+
end
|
181
|
+
|
182
|
+
# Calculates hash code according to all attributes.
|
183
|
+
# @return [Integer] Hash code
|
184
|
+
def hash
|
185
|
+
[applicant_redirect_url, applicant_webhook, install_webhook, label_keys, partner_hmac_key, settings_auth_header, settings_auth_method, settings_password, settings_username, settings_webhook, uninstall_webhook].hash
|
186
|
+
end
|
187
|
+
|
188
|
+
# Builds the object from hash
|
189
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
190
|
+
# @return [Object] Returns the model itself
|
191
|
+
def self.build_from_hash(attributes)
|
192
|
+
new.build_from_hash(attributes)
|
193
|
+
end
|
194
|
+
|
195
|
+
# Builds the object from hash
|
196
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
197
|
+
# @return [Object] Returns the model itself
|
198
|
+
def build_from_hash(attributes)
|
199
|
+
return nil unless attributes.is_a?(Hash)
|
200
|
+
attributes = attributes.transform_keys(&:to_sym)
|
201
|
+
self.class.openapi_types.each_pair do |key, type|
|
202
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
203
|
+
self.send("#{key}=", nil)
|
204
|
+
elsif type =~ /\AArray<(.*)>/i
|
205
|
+
# check to ensure the input is an array given that the attribute
|
206
|
+
# is documented as an array but the input is not
|
207
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
208
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
209
|
+
end
|
210
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
211
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
212
|
+
end
|
213
|
+
end
|
214
|
+
|
215
|
+
self
|
216
|
+
end
|
217
|
+
|
218
|
+
# Deserializes the data based on type
|
219
|
+
# @param string type Data type
|
220
|
+
# @param string value Value to be deserialized
|
221
|
+
# @return [Object] Deserialized data
|
222
|
+
def _deserialize(type, value)
|
223
|
+
case type.to_sym
|
224
|
+
when :Time
|
225
|
+
Time.parse(value)
|
226
|
+
when :Date
|
227
|
+
Date.parse(value)
|
228
|
+
when :String
|
229
|
+
value.to_s
|
230
|
+
when :Integer
|
231
|
+
value.to_i
|
232
|
+
when :Float
|
233
|
+
value.to_f
|
234
|
+
when :Boolean
|
235
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
236
|
+
true
|
237
|
+
else
|
238
|
+
false
|
239
|
+
end
|
240
|
+
when :Object
|
241
|
+
# generic object (usually a Hash), return directly
|
242
|
+
value
|
243
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
244
|
+
inner_type = Regexp.last_match[:inner_type]
|
245
|
+
value.map { |v| _deserialize(inner_type, v) }
|
246
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
247
|
+
k_type = Regexp.last_match[:k_type]
|
248
|
+
v_type = Regexp.last_match[:v_type]
|
249
|
+
{}.tap do |hash|
|
250
|
+
value.each do |k, v|
|
251
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
252
|
+
end
|
253
|
+
end
|
254
|
+
else # model
|
255
|
+
# models (e.g. Pet) or oneOf
|
256
|
+
klass = OpenapiClient.const_get(type)
|
257
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
258
|
+
end
|
259
|
+
end
|
260
|
+
|
261
|
+
# Returns the string representation of the object
|
262
|
+
# @return [String] String presentation of the object
|
263
|
+
def to_s
|
264
|
+
to_hash.to_s
|
265
|
+
end
|
266
|
+
|
267
|
+
# to_body is an alias to to_hash (backward compatibility)
|
268
|
+
# @return [Hash] Returns the object in the form of hash
|
269
|
+
def to_body
|
270
|
+
to_hash
|
271
|
+
end
|
272
|
+
|
273
|
+
# Returns the object in the form of hash
|
274
|
+
# @return [Hash] Returns the object in the form of hash
|
275
|
+
def to_hash
|
276
|
+
hash = {}
|
277
|
+
self.class.attribute_map.each_pair do |attr, param|
|
278
|
+
value = self.send(attr)
|
279
|
+
if value.nil?
|
280
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
281
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
282
|
+
end
|
283
|
+
|
284
|
+
hash[param] = _to_hash(value)
|
285
|
+
end
|
286
|
+
hash
|
287
|
+
end
|
288
|
+
|
289
|
+
# Outputs non-array value in the form of hash
|
290
|
+
# For object, use to_hash. Otherwise, just return the value
|
291
|
+
# @param [Object] value Any valid value
|
292
|
+
# @return [Hash] Returns the value in the form of hash
|
293
|
+
def _to_hash(value)
|
294
|
+
if value.is_a?(Array)
|
295
|
+
value.compact.map { |v| _to_hash(v) }
|
296
|
+
elsif value.is_a?(Hash)
|
297
|
+
{}.tap do |hash|
|
298
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
299
|
+
end
|
300
|
+
elsif value.respond_to? :to_hash
|
301
|
+
value.to_hash
|
302
|
+
else
|
303
|
+
value
|
304
|
+
end
|
305
|
+
end
|
306
|
+
|
307
|
+
end
|
308
|
+
|
309
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
=begin
|
2
|
+
#Fountain Partner Docs
|
3
|
+
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v1
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 6.2.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
module OpenapiClient
|
14
|
+
VERSION = '1.0.0'
|
15
|
+
end
|
@@ -0,0 +1,58 @@
|
|
1
|
+
=begin
|
2
|
+
#Fountain Partner Docs
|
3
|
+
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v1
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 6.2.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
# Common files
|
14
|
+
require 'openapi_client/api_client'
|
15
|
+
require 'openapi_client/api_error'
|
16
|
+
require 'openapi_client/version'
|
17
|
+
require 'openapi_client/configuration'
|
18
|
+
|
19
|
+
# Models
|
20
|
+
require 'openapi_client/models/v1_partners_id_applicants_applicant_id_details_post_request'
|
21
|
+
require 'openapi_client/models/v1_partners_id_applicants_applicant_id_details_post_request_applicant'
|
22
|
+
require 'openapi_client/models/v1_partners_id_applicants_applicant_id_details_post_request_applicant_partner_details'
|
23
|
+
require 'openapi_client/models/v1_partners_id_applicants_applicant_id_put200_response'
|
24
|
+
require 'openapi_client/models/v1_partners_id_applicants_applicant_id_put_request'
|
25
|
+
require 'openapi_client/models/v1_partners_id_applicants_applicant_id_put_request_applicant'
|
26
|
+
require 'openapi_client/models/v1_partners_id_applicants_applicant_id_put_request_applicant_labels_inner'
|
27
|
+
require 'openapi_client/models/v1_partners_id_applicants_applicant_id_status_post_request'
|
28
|
+
require 'openapi_client/models/v1_partners_id_applicants_applicant_id_status_post_request_applicant'
|
29
|
+
require 'openapi_client/models/v1_partners_id_applicants_applicant_id_status_post_request_applicant_partner_status'
|
30
|
+
require 'openapi_client/models/v1_partners_id_get200_response'
|
31
|
+
require 'openapi_client/models/v1_partners_id_get200_response1'
|
32
|
+
require 'openapi_client/models/v1_partners_id_get200_response1_data'
|
33
|
+
require 'openapi_client/models/v1_partners_id_get200_response1_data_attributes'
|
34
|
+
require 'openapi_client/models/v1_partners_id_get200_response_data'
|
35
|
+
require 'openapi_client/models/v1_partners_id_get200_response_data_attributes'
|
36
|
+
require 'openapi_client/models/v1_partners_id_get_request'
|
37
|
+
require 'openapi_client/models/v1_partners_id_get_request_partner'
|
38
|
+
|
39
|
+
# APIs
|
40
|
+
require 'openapi_client/api/default_api'
|
41
|
+
|
42
|
+
module OpenapiClient
|
43
|
+
class << self
|
44
|
+
# Customize default settings for the SDK using block.
|
45
|
+
# OpenapiClient.configure do |config|
|
46
|
+
# config.username = "xxx"
|
47
|
+
# config.password = "xxx"
|
48
|
+
# end
|
49
|
+
# If no block given, return the default Configuration object.
|
50
|
+
def configure
|
51
|
+
if block_given?
|
52
|
+
yield(Configuration.default)
|
53
|
+
else
|
54
|
+
Configuration.default
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
@@ -0,0 +1,38 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
|
3
|
+
=begin
|
4
|
+
#Fountain Partner Docs
|
5
|
+
|
6
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
7
|
+
|
8
|
+
The version of the OpenAPI document: v1
|
9
|
+
|
10
|
+
Generated by: https://openapi-generator.tech
|
11
|
+
OpenAPI Generator version: 6.2.1
|
12
|
+
|
13
|
+
=end
|
14
|
+
|
15
|
+
$:.push File.expand_path("../lib", __FILE__)
|
16
|
+
require "openapi_client/version"
|
17
|
+
|
18
|
+
Gem::Specification.new do |s|
|
19
|
+
s.name = "openapi_client"
|
20
|
+
s.version = OpenapiClient::VERSION
|
21
|
+
s.platform = Gem::Platform::RUBY
|
22
|
+
s.authors = ["James Thullbery"]
|
23
|
+
s.email = ["info@fountain.com"]
|
24
|
+
s.homepage = "https://openapi-generator.tech"
|
25
|
+
s.summary = "Fountain Partner Docs Ruby Gem"
|
26
|
+
s.description = "No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)"
|
27
|
+
s.license = "Unlicense"
|
28
|
+
s.required_ruby_version = ">= 2.4"
|
29
|
+
|
30
|
+
s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
|
31
|
+
|
32
|
+
s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
|
33
|
+
|
34
|
+
s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? }
|
35
|
+
s.test_files = `find spec/*`.split("\n")
|
36
|
+
s.executables = []
|
37
|
+
s.require_paths = ["lib"]
|
38
|
+
end
|
@@ -0,0 +1,99 @@
|
|
1
|
+
=begin
|
2
|
+
#Fountain Partner Docs
|
3
|
+
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v1
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 6.2.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for OpenapiClient::DefaultApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'DefaultApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = OpenapiClient::DefaultApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of DefaultApi' do
|
30
|
+
it 'should create an instance of DefaultApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(OpenapiClient::DefaultApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for v1_partners_id_applicants_applicant_id_details_post
|
36
|
+
# Create Applicant Details
|
37
|
+
# @param applicant_id
|
38
|
+
# @param id
|
39
|
+
# @param [Hash] opts the optional parameters
|
40
|
+
# @option opts [V1PartnersIdApplicantsApplicantIdDetailsPostRequest] :v1_partners_id_applicants_applicant_id_details_post_request
|
41
|
+
# @return [Object]
|
42
|
+
describe 'v1_partners_id_applicants_applicant_id_details_post test' do
|
43
|
+
it 'should work' do
|
44
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
# unit tests for v1_partners_id_applicants_applicant_id_put
|
49
|
+
# Update Applicant
|
50
|
+
# @param applicant_id
|
51
|
+
# @param id
|
52
|
+
# @param [Hash] opts the optional parameters
|
53
|
+
# @option opts [V1PartnersIdApplicantsApplicantIdPutRequest] :v1_partners_id_applicants_applicant_id_put_request
|
54
|
+
# @return [V1PartnersIdApplicantsApplicantIdPut200Response]
|
55
|
+
describe 'v1_partners_id_applicants_applicant_id_put test' do
|
56
|
+
it 'should work' do
|
57
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
61
|
+
# unit tests for v1_partners_id_applicants_applicant_id_status_post
|
62
|
+
# Create Applicant Status
|
63
|
+
# @param applicant_id
|
64
|
+
# @param id
|
65
|
+
# @param [Hash] opts the optional parameters
|
66
|
+
# @option opts [V1PartnersIdApplicantsApplicantIdStatusPostRequest] :v1_partners_id_applicants_applicant_id_status_post_request
|
67
|
+
# @return [Object]
|
68
|
+
describe 'v1_partners_id_applicants_applicant_id_status_post test' do
|
69
|
+
it 'should work' do
|
70
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
74
|
+
# unit tests for v1_partners_id_get
|
75
|
+
# Show Partner
|
76
|
+
# @param id
|
77
|
+
# @param [Hash] opts the optional parameters
|
78
|
+
# @option opts [Object] :format
|
79
|
+
# @option opts [Object] :partner
|
80
|
+
# @return [V1PartnersIdGet200Response]
|
81
|
+
describe 'v1_partners_id_get test' do
|
82
|
+
it 'should work' do
|
83
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
84
|
+
end
|
85
|
+
end
|
86
|
+
|
87
|
+
# unit tests for v1_partners_id_put
|
88
|
+
# Update Partner
|
89
|
+
# @param id
|
90
|
+
# @param [Hash] opts the optional parameters
|
91
|
+
# @option opts [V1PartnersIdGetRequest] :v1_partners_id_get_request
|
92
|
+
# @return [V1PartnersIdGet200Response1]
|
93
|
+
describe 'v1_partners_id_put test' do
|
94
|
+
it 'should work' do
|
95
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
96
|
+
end
|
97
|
+
end
|
98
|
+
|
99
|
+
end
|